ValueChange<T> class

A Change emitted by ValueEmitter. If ValueEmitter.emitDetailedChanges is set to true, will provide both the new value and the old value being replaced. Otherwise, will recycle the same cached new ValueChange.any object to minimize garbage collection.

Inheritance
Implementers

Constructors

ValueChange(T oldValue, T newValue, {bool quiet = false})
ValueChange.any({bool quiet = false})
A change notification that doesn't include detailed information about the change. Will recycle the same object 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
newValue → T
The new value.
final
oldValue → T
The value being replaced.
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