mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 14:53:37 +00:00
5e31578877
Document that `add` must be implemented when using `ListMixin` or `ListBase` with Null Safety. Changes ListMixin.insert to not grow the list itself, but instead rely on `add` to do that. This means that a user of ListMixin/ListBase *only* needs to implement `add` to support growing a list with non-nullable elements (which they do need to because of Null Safety). Fixes #42496 Bug: http://dartbug.com/42496 Change-Id: I9476f3111330d7c7f1878f165e066f86d3108b87 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152853 Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Nate Bosch <nbosch@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |