mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
[federated_plugin] mirgrate to sound null safety (#781)
This commit is contained in:
@@ -12,6 +12,6 @@ class BatteryMethodChannel extends FederatedPluginInterface {
|
||||
|
||||
@override
|
||||
Future<int> getBatteryLevel() async {
|
||||
return await _methodChannel.invokeMethod<int>('getBatteryLevel');
|
||||
return await _methodChannel.invokeMethod<int>('getBatteryLevel') as int;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user