KeyValueStore class abstract

A string-to-string store with synchronous reads and writes.

The same-window redirect login keeps what it needs between leaving the app and coming back in one of these. In a browser it is window.sessionStorage (see currentBrowserWindow); in tests and on other platforms it is a MemoryKeyValueStore.

Constructors

KeyValueStore()

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → Iterable<String>
Every key currently stored.
no setter
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?
The value stored under key, or null when there is none.
remove(String key) → void
Remove whatever is stored under key.
toString() → String
A string representation of this object.
inherited
write(String key, String value) → void
Store value under key, replacing any earlier value.

Operators

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