PropertyChangeNotifier<K> mixin Null safety

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

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

Methods

deliverChanges() bool
If hasObservers, synchronously emits changes that have been queued.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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