isCharging property

Future<bool> get isCharging

Uses method channel for getting charging status.

Implementation

static Future<bool> get isCharging async {
  return await _methodChannel.invokeMethod('getChargingStatus');
}