setMetric method

Future<void> setMetric(
  1. Metric metric
)

Implementation

Future<void> setMetric(Metric metric) async {
  final provider = MetricsApp.of(this);
  assert(provider != null, 'MetricsProvider is null');
  if (provider != null) {
    provider.setMetric(metric);
  }
}