getMetric method

double? getMetric(
  1. String name
)

Query the latest value for a named metric.

Implementation

double? getMetric(String name) {
  final sink = _sink;
  if (sink is InMemoryMetricSink) {
    return sink.latestValue(name);
  }
  return null;
}