Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Null-assert the value given to a Completer expecting a non-null value #49053

Merged
merged 11 commits into from
Feb 28, 2024
Merged
2 changes: 1 addition & 1 deletion lib/web_ui/test/engine/clipboard_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Future<void> testMain() async {
const MethodCodec codec = JSONMethodCodec();
final Completer<ByteData> completer = Completer<ByteData>();
void callback(ByteData? data) {
completer.complete(data);
completer.complete(data!);
}

clipboardMessageHandler.setDataMethodCall(
Expand Down