Fix type cast null safety in MethodChannel._invokeMethod (#70809)
This commit is contained in:
@@ -156,7 +156,7 @@ class MethodChannel {
|
||||
}
|
||||
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].
|
||||
|
||||
Reference in New Issue
Block a user