DevicePowerPowerState constructor

DevicePowerPowerState({
  1. required String batteryState,
  2. required int batteryLevel,
})

Creates a DevicePowerPowerState object.

Implementation

DevicePowerPowerState({
  required this.batteryState,
  required this.batteryLevel,
}) : assert(Validators.isValidPercentage(batteryLevel),
          "`batteryPercent` must be between 0 and 100 (inclusive)");