Sourced from meta's changelog.
1.12.0 - 2015-08-31
Language changes
- Null-aware operators
??
: if null operator.expr1 ?? expr2
evaluates toexpr1
if notnull
, otherwiseexpr2
.??=
: null-aware assignment.v ??= expr
causesv
to be assignedexpr
only ifv
isnull
.x?.p
: null-aware access.x?.p
evaluates tox.p
ifx
is notnull
, otherwise evaluates tonull
.x?.m()
: null-aware method invocation.x?.m()
invokesm
only ifx
is notnull
.Core library changes
dart:async
StreamController
added setters for theonListen
,onPause
,onResume
andonCancel
callbacks.
dart:convert
LineSplitter
added asplit
static method returning anIterable
.
dart:core
Uri
class now perform path normalization when a URI is created. This removes most..
and.
sequences from the URI path. Purely relative paths (no scheme or authority) are allowed to retain some leading "dot" segments. Also addedhasAbsolutePath
,hasEmptyPath
, andhasScheme
properties.
dart:developer
- New
log
function to transmit logging events to Observatory.
dart:html
NodeTreeSanitizer
added theconst trusted
field. It can be used instead of defining aNullTreeSanitizer
class when callingsetInnerHtml
or other methods that create DOM from text. It is also more efficient, skipping the creation of aDocumentFragment
.
dart:io
... (truncated)
b4fa68e
Band-aid fix for issue #24191.00d6b50
Add library prefixes to NO_LOCATION_SPANNABLE and MessageKind.daff4e7
[dart2js] fix inference of ??= and []??=40c76bb
dart2js: fail gracefully with invalid package config1aecb65
dart2js: remove trailing 0 byte when reading .packages7f78948
dart2js: don't add a trailing slash when reading --packages99c2010
Handle comparison of empty URIs (sdk/24126).971f0a2
comment docgen test3e970df
comment out failing docgen testc7e7953
update dartdoc, markdown in DEPS