getDoubleAsync function

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

Returns a Double if exists in SharedPref

Implementation

double getDoubleAsync(String key, {double defaultValue = 0.0}) {
  return sharedPreferences.getDouble(key) ?? defaultValue;
}