[flutter_tools] run web unit tests in sound null safety (#70799)

This commit is contained in:
Jonah Williams
2020-11-19 16:49:05 -08:00
committed by GitHub
parent 6d521e9aff
commit a76289bb1b
10 changed files with 94 additions and 74 deletions

View File

@@ -121,8 +121,8 @@ class _PlatformBinaryMessenger extends BinaryMessenger {
/// Sends a platform message from the platform side back to the framework.
@override
Future<ByteData> send(String channel, ByteData? message) {
final Completer<ByteData> completer = Completer<ByteData>();
Future<ByteData?> send(String channel, ByteData? message) {
final Completer<ByteData?> completer = Completer<ByteData?>();
ui.window.onPlatformMessage!(channel, message, (ByteData? reply) {
try {
completer.complete(reply);