setDouble static method

void setDouble(
  1. String key,
  2. double value
)

Sets a double value in storage synchronously. Note: The actual write to disk happens asynchronously in the background.

Implementation

static void setDouble(String key, double value) {
  _ensureInitialized();
  _prefs!.setDouble(key, value);
}