Observable<C extends ChangeRecord> class
Null safety
Represents an object with observable state or properties.
The interface does not require any specific technique to implement observability. You may implement it in the following ways:
- Extend or mixin AsyncChangeNotifier
- Implement the interface yourself and provide your own implementation
- Implementers
Constructors
Properties
-
changes
→ Stream<
List< C> > -
Changes should produced in order, if significant.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hasObservers → bool
-
True if this object has any observers.
read-only
- 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
notifyChange(
[C? change]) → void -
Schedules
change
to be delivered. -
observed(
) → void - May override to be notified when changes is first observed.
-
toString(
) → String -
A string representation of this object.
inherited
-
unobserved(
) → void - May override to be notified when changes is no longer observed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited