Stash<T> class abstract

The stash definition

Implementers
Available extensions

Constructors

Stash()

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Future<Iterable<String>>
Returns a Iterable over all the Stash keys
no setter
name String
The name of the stash
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Future<int>
The number of entries on the stash
no setter

Methods

clear() Future<void>
Clears the contents of the stash
containsKey(String key) Future<bool>
Determines if the Stash contains an entry for the specified key.
get(String key) Future<T?>
Returns the stash value for the specified key
getAndPut(String key, T value) Future<T?>
Associates the specified value with the specified key in this stash, and returns any existing value. If the stash previously contained a mapping for the key, the old value is replaced by the specified value
getAndRemove(String key) Future<T?>
Removes the entry for a key only if currently mapped to some value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, T value) Future<void>
Add / Replace the stash value for the specified key.
putIfAbsent(String key, T value) Future<bool>
Associates the specified key with the given value if not already associated with one.
remove(String key) Future<void>
Removes the value stored under a key from this stash if present.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) Future<T?>
Get the stash value for the specified key.