Releases: google/built_collection.dart
Releases · google/built_collection.dart
Test fix
Remove obsolete restrictions
5.1.0
- Allow collections with nullable types, for example
BuiltList<T?>. - Allow key/value types to be
dynamic. This can be useful occasionally, and
with Dart 2 and null safety it's much harder to usedynamicby accident.
Stable null safe release
v5.0.0 Release 5.0.0.
Null safe `built_collection`
- Migrate to NNBD.
- Deps on package:collection and package:quiver have been removed.
- Multimap builders no longer have addAll methods that accept multimaps from quiver. But, the constructors still work with quiver multimaps.
Add an example
- Add an
examplefolder with some example code.
Internal cleanup
- Internal: cleanup for pedantic v1.9.0 lints.
Extension methods
- Add extensions methods:
List.build,Set.build,Map.build,
Iterable.toBuiltListandIterable.toBuiltSet. Requires SDK 2.6.0. - Cleanup: remove unnecessary
newandconst.
Bug fix to `ListMultimapBuilder.[]`
- Bug fix:
ListMultimapBuilder.[]no longer ignores modifications under some
circumstances.
Bug fix to `ListBuilder` `first` and `last`
- Bug fix:
ListBuilderfirstandlastsetters can no longer modify the
underlying collection.
Performance improvements
- Add benchmark for VM and dart2js.
- Stop doing explicit type checks on elements; in Dart 2 these are implied.
- Modify methods on
ListBuilderandSetBuilderthat takeIterable
elements so they only iterate over the iterable once. Improves performance
when the iterable are slow/lazy.