Post

Formatter updates 📐 The new formatter now decides whether a construct should split and then adds or removes the trailing comma as needed. A number of style changes were also added that tighten up and improve output.

Cross compilation 🚩 There is new support to compile to native Linux binaries from Windows, macOS, and Linux development machines. You can do this with the "dart compile exe" or "dart compile aot-snapshot" command and the "--target-os" and "--target-arch" flags.

1 repost7 likes

Null-aware elements ❓ New null-aware elements let you add elements to a collection such as a list, set, or map, if the elements are not null. To make an element a null-aware element in a collection literal, prepend the element with ?.

Doc imports 📥 There is now support for doc imports, a new comment-based syntax which enables external elements to be referenced in documentation comments without actually importing them. This tag can be specified in a doc comment above a library directive.

Hot reload on the web (experimental) 🔃 Stateful hot reload is now available on the web when you use the Dart Development Compiler (DDC). A redesign of the JS representation of Dart code lets you swap out code in a running application.