getDouble method
Retrieves a double value by its key.
This method fetches a double-precision floating-point value previously
stored using setDouble. If no value exists for the given key, or the
stored value is not a double, this method returns null.
Parameters:
key- The unique identifier of the double value to retrieve.
Returns a Future that completes with the stored double value if found,
or null if the key doesn't exist or the value is not a double.
Throws:
- ArgumentError if the key is invalid.
Implementation
@override
Future<double?> getDouble(String key) {
validateKey(key);
return backend.getDouble(encodeKey(key));
}