For the latest Dart news, visit our new blog at https://medium.com/dartlang .
Dart 1.12.0 is now released ! It contains the new null-aware operators language feature, and enhancements to pub, Observatory, dartdoc, and much more. Null-aware operators The new null-aware operators help you reduce the amount of code required to work with references that are potentially null. This feature is a collection of syntactic sugar for traversing (potentially null) object calls, conditionally setting a variable, and evaluating two (potentially null) expressions. Click or tap the red Run button below to see them in action. ?? if null operator. `expr1 ?? expr2` evaluates to `expr1` if not `null`, otherwise `expr2`. ??= null-aware assignment. `v ??= expr` causes `v` to be assigned `expr` only if `v` is `null`. x?.p null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`, otherwise evaluates to `null`. x?.m() null-aware method invocation. `x?.m()` invokes `m` only if `x` is not `null`. Learn more ...