isCharging static method

Future<bool> isCharging()

True when plugged in and charging or full. await UApp.isCharging()

Implementation

static Future<bool> isCharging() async => (await UDevice.status()).isCharging;