AsyncChangeNotifier<C extends ChangeRecord> class
Null safety
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
-
- Observable<
C>
- Observable<
- Implementers
Constructors
Properties
-
changes
→ Stream<
List< C> > -
Emits a list of changes when the state of the object changes.
read-onlyoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hasObservers → bool
-
Whether changes has at least one active listener.
read-onlyoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
deliverChanges(
) → bool -
If hasObservers, synchronously emits changes that have been queued.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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