removeMatching method
Removes all metrics which match the given test
.
Implementation
void removeMatching(MetricFilter test) => _metrics.keys
.where((name) => test(name, _metrics[name]!))
.toList()
.forEach(remove);
Removes all metrics which match the given test
.
void removeMatching(MetricFilter test) => _metrics.keys
.where((name) => test(name, _metrics[name]!))
.toList()
.forEach(remove);