setDoubleAsync static method
Sets a double value and returns a Future that completes when the write is done.
Implementation
static Future<bool> setDoubleAsync(String key, double value) async {
_ensureInitialized();
return await _prefs!.setDouble(key, value);
}