Dart 3.8 Released with Enhanced Formatter, Cross-Compilation, and Null-Aware Elements
Google has announced the release of Dart 3.8, a significant update to its programming language that introduces several key features aimed at improving developer productivity and cross-platform capabilities. Major enhancements include an updated code formatter that intelligently handles trailing commas and optimizes code style for better readability. The release also adds support for null-aware elements in collections, allowing developers to concisely add non-null items to lists, sets, or maps using the '?' prefix. A notable addition is cross-compilation support, enabling developers on Windows, macOS, or Linux machines to compile native Linux binaries for embedded devices or backends without needing a Linux environment. Furthermore, Dart 3.8 introduces doc imports, a new syntax that allows referencing external elements in documentation comments without actual library imports. Additional improvements include hot reload availability on the web and better trending package discovery on pub.dev. The team is also seeking participants for early access programs for FFigen and JNIgen tools. This update underscores Dart's continued evolution as a robust tool for modern application development across various platforms.
Wire timeline
Dart 3.8 Released with Enhanced Formatter, Cross-Compilation, and Null-Aware Elements
Google has announced the release of Dart 3.8, a significant update to its programming language that introduces several key features aimed at improving developer productivity and cross-platform capabilities. Major enhancements include an updated code formatter that intelligently handles trailing commas and optimizes code style for better readability. The release also adds support for null-aware elements in collections, allowing developers to concisely add non-null items to lists, sets, or maps using the '?' prefix. A notable addition is cross-compilation support, enabling developers on Windows, macOS, or Linux machines to compile native Linux binaries for embedded devices or backends without needing a Linux environment. Furthermore, Dart 3.8 introduces doc imports, a new syntax that allows referencing external elements in documentation comments without actual library imports. Additional improvements include hot reload availability on the web and better trending package discovery on pub.dev. The team is also seeking participants for early access programs for FFigen and JNIgen tools. This update underscores Dart's continued evolution as a robust tool for modern application development across various platforms.
Dart - Medium