EntityStateAdapter<T> class abstract

Implementers

Constructors

EntityStateAdapter()

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

addAll<S extends EntityState<T>>(List<T> entities, S state) → S
Adds many entities to the store, removing existing entities
addMany<S extends EntityState<T>>(List<T> entities, S state) → S
Adds many entities to the store and does not replace existing entities
addOne<S extends EntityState<T>>(T entity, S state) → S
Adds a single entity to the store. NOP if item is already in the store
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAll<S extends EntityState<T>>(S state) → S
Empties the store
removeMany<S extends EntityState<T>>(List<String> keys, S state) → S
Removes entities with the specified IDs from the store
removeOne<S extends EntityState<T>>(String id, S state) → S
Removes an entity with the specified ID from the store
toString() String
A string representation of this object.
inherited
updateMany<S extends EntityState<T>>(List<T> items, S state) → S
Updates the data for many elements. NOP for items that are not already in the store
updateOne<S extends EntityState<T>>(T item, S state) → S
Updates the data for a single element. NOP if the item does not exist
upsertMany<S extends EntityState<T>>(List<T> items, S state) → S
Creates or updates many elements
upsertOne<S extends EntityState<T>>(T item, S state) → S
Creates or updates a single element

Operators

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