StateObserver class abstract
An object that observes state changes.
If there are multiple BinderScopes. All Observers between the logic and the scope where the state is saved, are called.
For example, in the following snippet, observers b and a, are called when the logic l updates changes.
BinderScope(
observers: [a],
child: BinderScope(
overrides: [l.overrideWithSelf()],
observers: [b],
),
);
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
didChanged<
T> (StateRef< T> ref, T oldState, T newState, Object? action) → bool -
Called when a state changed.
This method must return
true
if the changes have been handled and other observers must no be called, orfalse
if other observers can be called. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited