BatteryInfo constructor

BatteryInfo({
  1. int chargeLevel = -1,
  2. int healthLevel = -1,
  3. HealthStatus healthStatus = HealthStatus.NotInstalled,
})

Implementation

BatteryInfo(
    {int chargeLevel = -1,
    int healthLevel = -1,
    HealthStatus healthStatus = HealthStatus.NotInstalled})
    : this.batteryChargeLevel = chargeLevel,
      this.batteryHealthLevel = healthLevel,
      this.batteryHealthStatus = healthStatus;