stopAllMetrics method

void stopAllMetrics({
  1. DateTime? now,
})

Implementation

void stopAllMetrics({DateTime? now}) {
  var startedMetrics = _startedMetrics;

  if (startedMetrics != null) {
    now ??= DateTime.now();

    for (var k in startedMetrics.keys) {
      stopMetric(k, now: now);
    }
  }
}