setMetric static method

void setMetric(
  1. String key,
  2. Object? value
)

Adds or updates one metric.

Implementation

static void setMetric(String key, Object? value) {
  _values[key] = value?.toString() ?? 'null';
  _emit();
}