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("Camera Angle: ${data.servoAngle} degrees"),
MetricLine("Laser: ${data.laserState.displayName}", severity: data.laserState.toBool() ? Severity.critical : null),
MetricLine("------------------------------",),
MetricLine("Lift:"),
...getMotorData(data.lift,),
MetricLine("------------------------------",),
MetricLine("Rotate"),
...getMotorData(data.rotate),
MetricLine("------------------------------",),
MetricLine("Pinch:"),
...getMotorData(data.pinch),
];