A pluggable key-value storage interface.
Implement this to back Storage with shared_preferences,
hive, secure storage, or anything else.
- 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(
) → void - Removes all stored values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → String? -
Returns the stored value for
keyornull. -
remove(
String key) → void -
Removes the value for
key. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → void -
Stores
valueunderkey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited