getMetricsByType static method

List<Metric> getMetricsByType(
  1. MetricType type
)

Gets metrics filtered by type.

Implementation

static List<Metric> getMetricsByType(MetricType type) {
  return _metrics.where((m) => m.type == type).toList();
}