SPMemoryPreferencesStore class

In-memory preference store useful for tests, previews and session data.

Values are not persisted between process launches. Use a persistent adapter in production when data must survive application restarts.

Implemented types

Constructors

SPMemoryPreferencesStore()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Removes every value owned by this store.
override
containsKey(String key) → Future<bool>
Returns whether key exists.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → Future<Object?>
Reads a value, or null when key does not exist.
override
remove(String key) → Future<void>
Removes key if present.
override
toString() → String
A string representation of this object.
inherited
write(String key, Object value) → Future<void>
Writes a supported preference value.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited