PropertyChangeNotifier<K> mixin

Supplies property changes and various hooks to implement Observable.

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

PropertyChangeNotifier may be extended or used as a delegate. To use as a mixin, instead use with PropertyChangeMixin: with ChangeNotifier

Implemented types
Mixin Applications

Properties

changes Stream<List<ChangeRecord>>
Emits a list of changes when the state of the object changes.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
Whether changes has at least one active listener.
no setterinherited
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChange([ChangeRecord? change]) → void
Schedules change to be delivered.
inherited
notifyPropertyChange<T>(K field, T oldValue, T newValue) → T
observed() → void
May override to be notified when changes is first observed.
inherited
toString() String
A string representation of this object.
inherited
unobserved() → void
May override to be notified when changes is no longer observed.
inherited

Operators

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