getMetric<T> method

T? getMetric<T>(
  1. Nip85Metric metric
)

Get a specific metric value

Implementation

T? getMetric<T>(Nip85Metric metric) {
  final value = metrics[metric];
  if (value is T) return value;
  return null;
}