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

Constructors

MapChange(List<MapModification<K, V>> modifications, {bool quiet = false})
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.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
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.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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