Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid completing a non-nullable Completer with a nullable value (#3328)
Implicitly passing a nullable value to a Completer of a non-nullable type can lead to surprising null-asserting exceptions. See dart-lang/sdk#53253 for more details. In this PR, we add an explicit null-assertion, which makes this call in-line with the general concepts of null safety. Fixes flutter/flutter#137294
- Loading branch information