diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d2fb410a71..2a6a72879cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,14 @@ ## 1.12.0 +### Language changes + +* Null-aware operators + * `??`: 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`. + ### Core library changes * `dart:async`