MapWebStorage class

Default implementation using a Map for storage.

In a real browser environment, you would create an adapter for window.localStorage.

Implemented types

Constructors

MapWebStorage()

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → List<String>
Returns all keys in the storage.
no setteroverride
length → int
Returns the number of items stored.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getItem(String key) → String?
Retrieves the value associated with key, or null if not found.
override
key(int index) → String?
Returns the key at index, or null if out of range.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(String key) → void
Removes the value associated with key.
override
setItem(String key, String value) → void
Stores a value associated with key.
override
toString() → String
A string representation of this object.
inherited

Operators

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