ContainerChange class

A Change used by EmitterContainer to notify listeners whenever a child element (see EmitterContainer.children) changed or EmitterContainer.emit is called.

Inheritance

Constructors

ContainerChange(ChangeEmitter<Change>? changedElement, Change? change, {bool quiet = false})
ContainerChange.any({bool quiet = false})
A change that doesn't provide detailed information about the change (does specify Change.quiet value). This is the default for EmitterContainer. Will provide the same cached object to minimize garbage collection.
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
change Change?
The Change broadcast by the changedElement that triggerd this change.
final
changedElement ChangeEmitter<Change>?
The child ChangeEmitter that changed.
final
hashCode int
The hash code for this object.
no setterinherited
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