deregister method Null safety
- Metric metric
Deregister Metrics to make them not visible to Observatory.
Implementation
static void deregister(Metric metric) {
// TODO: When NNBD is complete, delete the following line.
ArgumentError.checkNotNull(metric, 'metric');
_metrics.remove(metric.name);
}