getBatteryLevel method

  1. @override
Future<int?> getBatteryLevel()
override

Implementation

@override
Future<int?> getBatteryLevel() async {
  final level = await methodChannel.invokeMethod('getBatteryLevel');
  return level;
}