electricalSeverity property
The severity for the electrical metrics.
Implementation
Severity? get electricalSeverity {
if (data.batteryVoltage == 0) return null;
if (data.batteryVoltage <= 25) {
return Severity.critical;
} else if (data.batteryVoltage <= 26) {
return Severity.warning;
} else {
return null;
}
}