createMetricPreferences static method

Future<void> createMetricPreferences()

Implementation

static Future<void> createMetricPreferences() async {
  final pref = await SharedPreferences.getInstance();
  await pref.setDouble(kMetricsKey, kDefaultMetricsValue);
}