getDoubleValue static method
getIntValue
Get int value from SharedPreferences
- Param
key
The key to get the value
Implementation
static Future<double?> getDoubleValue(String key) async {
final preferences = await SharedPreferences.getInstance();
final value = preferences.getDouble(key);
return value;
}