Unverified Commit 93fbaf15 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Fix type cast null safety in MethodChannel._invokeMethod (#70809)

parent c6290500
...@@ -156,7 +156,7 @@ class MethodChannel { ...@@ -156,7 +156,7 @@ class MethodChannel {
} }
throw MissingPluginException('No implementation found for method $method on channel $name'); throw MissingPluginException('No implementation found for method $method on channel $name');
} }
return codec.decodeEnvelope(result) as T; return codec.decodeEnvelope(result) as T?;
} }
/// Invokes a [method] on this channel with the specified [arguments]. /// Invokes a [method] on this channel with the specified [arguments].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment