setDouble method
Saves a double value
to the cache and platform.
On platforms that do not support storing doubles, the value will be stored as a float instead.
Throws an ArgumentError if key
is not in this instance's filter.
Implementation
Future<void> setDouble(String key, double value) async {
if (!_isValidKey(key)) {
throw ArgumentError(
'$key is not included in the PreferencesFilter allowlist');
}
_cache[key] = value;
return _platformMethods.setDouble(key, value);
}