BatteryLevelStatus constructor

BatteryLevelStatus({
  1. required bool isBatteryPresent,
  2. required bool isWirelessCharging,
  3. required bool isWiredCharging,
  4. required bool isCharging,
  5. required bool isBatteryFaulty,
  6. required int percentage,
})

Constructs a BatteryLevelStatus object containing information about the battery's state, charging method, and percentage.

Implementation

BatteryLevelStatus({
  required this.isBatteryPresent,
  required this.isWirelessCharging,
  required this.isWiredCharging,
  required this.isCharging,
  required this.isBatteryFaulty,
  required this.percentage,
});