InMemoryStorage class

An implementation of Storage that stores data in memory.

Implemented types

Constructors

InMemoryStorage.new([Map<String, dynamic> initialData = const {}])
An implementation of Storage that stores data in memory.

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

get(String key) Object?
Retrieves the value associated with the given key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) Future<void>
Removes the value associated with the given key.
override
setBool(String key, bool value) Future<void>
Sets the value associated with the given key to value.
override
setDouble(String key, double value) Future<void>
Sets the value associated with the given key to value.
override
setInt(String key, int value) Future<void>
Sets the value associated with the given key to value.
override
setString(String key, String value) Future<void>
Sets the value associated with the given key to value.
override
setStringList(String key, List<String> value) Future<void>
Sets the value associated with the given key to value.
override
toString() String
A string representation of this object.
inherited

Operators

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