setDouble static method
Saves a double value
to persistent storage in the background.
Android doesn't support storing doubles, so it will be stored as a float.
Returns false if key is null.
Implementation
static Future<bool> setDouble(String? key, double? value) async {
if (key == null || value == null) {
return false;
}
final prefs = await instance;
return prefs.setDouble(key, value);
}