setDouble 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 the platform implementation can definitively determine
that storing the preference failed. A return value of true indicates
either that the value was written successfully, or that the underlying
platform API does not report success or failure.
Implementation
Future<bool> setDouble(String key, double value) => _setValue('Double', key, value);