allMetrics property
- @override
override
A list of user-friendly explanations for each of the metrics.
Be sure to store the actual values as fields. This property should be a list of one user-friendly explanation per metric.
Implementation
@override
List<MetricLine> get allMetrics => [
MetricLine("Voltage: ${drive.batteryVoltage.toStringAsFixed(2)} V", severity: voltageSeverity),
MetricLine("Current: ${drive.batteryCurrent.toStringAsFixed(2)} A"),
MetricLine("Temperature: ${drive.batteryTemperature.toStringAsFixed(2)} °C", severity: temperatureSeverity),
];