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.

0 reposts4 likes

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

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.