Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Null-assert the value given to a Completer expecting a non-null value
The code with out the null assertion is legal as per the type signature, but will throw a runtime exception if the nullable value is null. To make this exception more explicit, the value must be null-checked before completing the completer with the value. The analyzer will soon enforce such checks. See dart-lang/sdk#53253. This PR is behaviorally a no-op. Fixes flutter/flutter#136775
- Loading branch information