allMetrics property

  1. @override
List<MetricLine> get allMetrics
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("Throttle: ${data.throttle.toStringAsFixed(2)}", severity: throttleSeverity),
	MetricLine("Left: ${data.left.toStringAsFixed(2)}"),
	MetricLine("Right: ${data.right.toStringAsFixed(2)}"),
    MetricLine("Left Side: ${data.frontLeft.toStringAsFixed(1)}, ${data.middleLeft.toStringAsFixed(1)}, ${data.backLeft.toStringAsFixed(1)}"),
    MetricLine("Right Side: ${data.frontRight.toStringAsFixed(1)}, ${data.middleRight.toStringAsFixed(1)}, ${data.backRight.toStringAsFixed(1)}"),
  ];