setDoubleAsync static method

Future<bool> setDoubleAsync(
  1. String key,
  2. double value
)

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);
}