On June 27, Dart Team released the Dart 2.4 SDK, which includes improvements to the core library, the Dart for Web compiler, and tools.
Core library
dart:isolate
TransferableTypedData
: This class was added to make the quarantineUint8List
Data communicates faster.Isolate.resolvePackageUri
: in the use ofdart2js
orDDC(Dart Dev Compile)
Always thrown at compile timeUnsupportedError
.
dart:developer
ServiceExtensionResponse
: allows better debuggingVM
Service extensionRPC
The results.
dart:io
- Repair the
Cookie
Class interoperability with certain sites is allowedcookie
Value is an empty string; HttpClientResponse
A new interface has been addedcompressionState
getter
Has been extended to thegetter
Specifies whether the body of the response is compressed when received, and whether it has passedHttpClient.autoUncompress
Automatic decompression. As part of this change, thedart:io
The corresponding new enumeration has been added to:HttpClientResponseCompressionState
;
dart:async
- Due to the
StreamIterator
Class error, allowedwait for
thenul
L is the flow. thisbug
It has now been fixed.
dart:core
-
The RegExp interface has been extended to provide constructors for two newly named parameters:
- Unicode: (bool, default: false), used in Unicode mode;
- DotAll: (bool, default: false), change the matching behavior of ‘.’;
Dart for the Web
Dart Dev Compiler (DDC)
Improved the type of NoSuchMethod errors thrown for dynamic call failures. Now, they contain specific information about the nature of the error, such as:
- Attempted to call a null value.
- use
null call
Method calls an object instance. - Too few or too many parameters are passed.
- Incorrect named parameter passed.
- Type parameters are passed to non-generic methods.
Tools
1.Linter: updated to 0.1.91 with numerous bug fixes;
2.Pub: Pub publish will no longer warn about missing dependencies in the example/ import statement. OAuth2 authentication will explicitly require the OpenID range.