removeMatching method

void removeMatching(
  1. MetricFilter test
)

Removes all metrics which match the given test.

Implementation

void removeMatching(MetricFilter test) => _metrics.keys
    .where((name) => test(name, _metrics[name]!))
    .toList()
    .forEach(remove);