isCharging property

bool get isCharging

Whether the device is charging

Implementation

bool get isCharging => state == BatteryState.charging;