Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid passing a nullable value to Completer<nn-type>.completer.
This is cleanup work required to start enforcing this with static analysis, as per #53253. Real quick this issue is that this code is unsafe: ```dart void f(Completer<int> c, int? i) { Future<int>.value(i); // Ouch! c.complete(i); // Ouch! } ``` Change-Id: I91d7be0a16e62e78b530a70f115117d379259b9a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324541 Reviewed-by: Liam Appelbe <liama@google.com> Auto-Submit: Samuel Rawlins <srawlins@google.com> Commit-Queue: Liam Appelbe <liama@google.com>
- Loading branch information