BatteryRunway constructor

const BatteryRunway({
  1. required Duration duration,
  2. required Duration lowPowerDuration,
  3. required String recommendation,
  4. required int currentLevel,
  5. bool isCharging = false,
  6. double? drainRatePerHour,
  7. double? lowPowerDrainRatePerHour,
  8. double confidence = 0.0,
})

Creates a battery runway estimation.

Implementation

const BatteryRunway({
  required this.duration,
  required this.lowPowerDuration,
  required this.recommendation,
  required this.currentLevel,
  this.isCharging = false,
  this.drainRatePerHour,
  this.lowPowerDrainRatePerHour,
  this.confidence = 0.0,
});