MapChange<K, V> class
A Change emiited by MapEmitter. If MapEmitter.emitDetailedChanges is set to true,
will provide a list of MapModifications. Otherwise, will recycle the same cached new ListChange.any
object to minimize garbage collection.
- Inheritance
-
- Object
- Change
- ChangeWithAny
- MapChange
Constructors
-
MapChange(List<
MapModification< ? modifications, {bool quiet = false})K, V> > - MapChange.any({bool quiet = false})
-
A constructor that doesn't include information about a MapEmitter change.
Will recycle the same object per key/value type to minimize GC.
factory
Properties
- any → bool
-
Whether this change is generic or contains specific information about the change.
By default ChangeEmitters contained in this library don't contain
specific information about a change (except for the Change.quiet value)
and instead recycle the same Change object on each change
to minimize garbage collection.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modifications
→ List<
MapModification< ?K, V> > -
A list of modifications since a the last time
MapEmitter.notifyChange
was called or the map was initialized.final - quiet → bool
-
Whether a change will trigger a parent EmitterContainer to notify its listeners that it has changed.
This can be useful if you want to batch changes to children of a EmitterContainer but have
the container only emit one change.
finalinherited
- 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