getBatteryLevel property
Get battery level of the android device.
Implementation
static Future<int?> get getBatteryLevel async {
try {
final int? result = await _channel.invokeMethod('getBatteryLevel');
return result;
} on PlatformException catch (e) {
print("Failed to get battery level: '${e.message}'.");
return -1;
}
}