batteryPercentage property
The charge of the battery, as a percentage.
Implementation
double get batteryPercentage => (batteryVoltage - 19) / (24.5 - 19);
The charge of the battery, as a percentage.
double get batteryPercentage => (batteryVoltage - 19) / (24.5 - 19);