Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid depending on
iterator.current != null
. (#877)
With the NNBD change to Dart, it's no longer safe to rely on an iterator returning `null` when it has hit the end (or before calling `moveNext` the first time). For non-nullable element types, it will have to throw instead. This PR rewrites code that currently rely on a `null` value to recognize the end of an iterator.
- Loading branch information