getPrefDouble static method

double getPrefDouble(
  1. String key, {
  2. double defaultValue = 0.0,
})

Implementation

static double getPrefDouble(String key, {double defaultValue = 0.0}) {
  return prefs!.getDouble(key) ?? defaultValue;
}