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.

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 ?.

0 reposts4 likes

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.

Direct native interoperability 🔌 We’re launching an early access program for the codegen solutions FFigen and JNIgen. We are seeking Flutter plugin authors who want to develop or refactor plugins with these solutions.