savedDoubleValue static method
saveIntValue
Save int value to SharedPreferences
- Param
value
The value to save - Param
key
The key to save the value
Implementation
static Future<bool> savedDoubleValue(String key, double value) async {
final preferences = await SharedPreferences.getInstance();
return preferences.setDouble(key, value);
}