setDouble method

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

Sets a double value and notifies all active listeners that there's a new value for the key.

Returns true if a value was successfully set for the key, otherwise returns false.

Implementation

Future<bool> setDouble(String key, double value) {
  return setCustomValue(key, value, adapter: DoubleAdapter.instance);
}