AsyncChangeNotifier<C extends ChangeRecord> class

Supplies changes and various hooks to implement Observable.

May use notifyChange to queue a change record; they are asynchronously delivered at the end of the VM turn.

AsyncChangeNotifier may be extended, mixed in, or used as a delegate.

Implemented types
Implementers

Constructors

AsyncChangeNotifier()

Properties

changes Stream<List<C>>
Emits a list of changes when the state of the object changes.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
Whether changes has at least one active listener.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deliverChanges() bool
If hasObservers, synchronously emits changes that have been queued.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChange([C? change]) → void
Schedules change to be delivered.
override
observed() → void
May override to be notified when changes is first observed.
override
toString() String
A string representation of this object.
inherited
unobserved() → void
May override to be notified when changes is no longer observed.
override

Operators

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