InMemoryStore class

Simplest possible Map-backed store

Inheritance
Annotations
  • @immutable

Constructors

InMemoryStore([Map<String, Map<String, dynamic>?>? data])
Creates an InMemoryStore inititalized with data, which defaults to an empty HashMap

Properties

data Map<String, Map<String, dynamic>?>
Normalized map that backs the store. Defaults to an empty HashMap
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String dataId) → void
Delete the value of the dataId from the store, if preset
override
get(String dataId) Map<String, dynamic>?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String dataId, Map<String, dynamic>? value) → void
Write value into this store under the key dataId
override
putAll(Map<String, Map<String, dynamic>?> entries) → void
put all entries from data into the store
override
reset() → void
Empty the store
override
toMap() Map<String, Map<String, dynamic>?>
Return the underlying data as an unmodifiable Map.
override
toString() String
A string representation of this object.
inherited

Operators

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