setMetric method

Future<void> setMetric(
  1. Metric metric
)

Change App Metric

Implementation

Future<void> setMetric(Metric metric) async {
  // Check old metrics data
  if (metric != controller.metric) {
    await controller.setMetric(metric);
  }
}