1
0
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:
Ayush Bherwani
2021-04-06 14:29:58 +05:30
committed by GitHub
parent 9d50bdf494
commit beface247a
25 changed files with 198 additions and 217 deletions

View File

@@ -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;
}
}