flutter/packages/flutter_tools/lib
Sam Rawlins 25d2cdaab7
Null-assert the value given to a Completer expecting a non-null value (#136776)
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 https://github.com/dart-lang/sdk/issues/53253.

Fixes https://github.com/flutter/flutter/issues/136775
2023-10-18 22:19:18 +00:00
..
src Null-assert the value given to a Completer expecting a non-null value (#136776) 2023-10-18 22:19:18 +00:00
executable.dart Flutter preview device (#135639) 2023-10-18 00:27:54 +00:00
runner.dart [flutter_tools] Run ShutdownHooks when handling signals (#134590) 2023-09-13 13:05:29 -07:00