Persistent preference-style key/value storage abstraction.
Implementations should support the same primitive value set commonly used by
preference stores: String, bool, int, double and List<String>.
- Implementers
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.
-
containsKey(
String key) → Future< bool> -
Returns whether
keyexists. -
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
keydoes not exist. -
remove(
String key) → Future< void> -
Removes
keyif present. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, Object value) → Future< void> -
Writes a supported preference
value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited