KeyValueStore class abstract

A minimal synchronous string key/value store. Abstracts localStorage so that storage-backed logic can be unit-tested with MemoryKeyValueStore without a browser.

Implementers

Constructors

KeyValueStore()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) String?
Returns the value for key, or null if absent.
remove(String key) → void
Removes key if present.
removeWhereKeyStartsWith(String prefix) → void
Removes every key beginning with prefix.
toString() String
A string representation of this object.
inherited
write(String key, String value) → void
Stores value under key.

Operators

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