setMetric method

Future<void> setMetric(
  1. Metric metric
)

Implementation

Future<void> setMetric(Metric metric) async {
  await changeMetric(metric);
  await updateMetricPreferences(metric);
}