BatteryRunway.charging constructor

const BatteryRunway.charging({
  1. required int currentLevel,
})

Creates an estimation for a charging device.

Implementation

const BatteryRunway.charging({
  required this.currentLevel,
})  : duration = const Duration(hours: 999),
      lowPowerDuration = const Duration(hours: 999),
      recommendation = 'Device is charging - unlimited tracking available',
      isCharging = true,
      drainRatePerHour = 0.0,
      lowPowerDrainRatePerHour = 0.0,
      confidence = 1.0;