setDouble static method
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);
}