BatteryState constructor

BatteryState({
  1. required int level,
  2. required int temperature,
  3. required bool isCharging,
})

Constructs a BatteryState object with the given properties.

Implementation

BatteryState({
  required this.level,
  required this.temperature,
  required this.isCharging,
});