IWebStorage class abstract interface

Storage interface for web platform abstraction.

This allows dependency injection for testing purposes.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → List<String>
Returns all keys in the storage.
no setter
length → int
Returns the number of items stored.
no setter
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.
key(int index) → String?
Returns the key at index, or null if out of range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(String key) → void
Removes the value associated with key.
setItem(String key, String value) → void
Stores a value associated with key.
toString() → String
A string representation of this object.
inherited

Operators

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