saveDouble static method
Implementation
static Future<bool> saveDouble(String key, double? value,
[double defaultValue = 0.0]) async {
final prefs = await SharedPreferences.getInstance();
return prefs.setDouble(key, value ?? defaultValue);
}