The Google Dart team has released the Dart 2.5 SDK, which features the following beta capabilities:
- ML Complete, using machine learning to address a situation in which the list of possible completions grows longer, as a result of a growing number of APIs to explore. A TensorFlow Lite-based model of likely member occurrences is trained based on a given context. ML Complete is built into the Dart analyzer. It is available across Dart-enabled editors such as Android Studio and Visual Studio Code.
dart:ffiforeign function interface for Dart-C interop, enabling calls into a C-based system API on the host OS, or calls into a C-based system library. The foreign function interface comes in response to developers requesting better support for calling C code from Dart. This support thus far has been limited to deep integration into the Dart VM via native extensions.
Also featured in Dart 2.5 is expanded support for defining constant expressions, including the ability to use casts and control flow and collection features made available in Dart 2.3. Future plans for Dart call for implementing a sound non-nullable tracking type system by default, which could provide performance benefits. Concurrency improvements also could be added, to make better use of multi-core processors on smartphones.
Where to download Dart
Instructions on accessing the Dart SDK can be found on the dart.dev website.
Credit: Google News