BatteryRunwayCalculator class

Calculator for battery runway estimation.

Uses battery statistics and current state to predict remaining tracking time.

Constructors

BatteryRunwayCalculator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculate({required int currentLevel, required bool isCharging, double? drainPercent, int trackingMinutes = 0, int reserveLevel = 5}) BatteryRunway
Calculates battery runway from current statistics.

Constants

defaultDrainRate → const double
Default drain rate when no data is available (percent per hour).
lowPowerMultiplier → const double
Low power mode drain rate multiplier.
minTrackingMinutes → const int
Minimum tracking minutes required for reliable estimation.