CollectionUpdated<T, K> class final

Replaces a loaded item with the same stable key. Applying an update for an absent key leaves the snapshot unchanged.

Inheritance

Constructors

CollectionUpdated({required T item, required K key})
Creates an update for an already loaded key.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
item → T
Replacement value for the matching loaded item.
final
key → K
Stable key to locate using the consumer's key extractor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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