metric method

MetricValue<num>? metric(
  1. String id
)

Returns a certain target metric.

Implementation

MetricValue? metric(String id) =>
    metrics.firstWhereOrNull((metric) => metric.metricsId == id);