Uses method channel for getting charging status.
Future<bool> get isCharging async { // return await _methodChannel.invokeMethod('getChargingStatus'); throw UnimplementedError('platformVersion() has not been implemented.'); }