readMetricPreferences static method

Future<double> readMetricPreferences()

Implementation

static Future<double> readMetricPreferences() async {
  final pref = await SharedPreferences.getInstance();
  return pref.getDouble(kMetricsKey) ?? kDefaultMetricsValue;
}