DelegatingStateObserver class
A specific StateObserver which delegates the actual implementation to a function.
- Implemented types
Constructors
- DelegatingStateObserver(OnStateUpdated? onStateUpdated)
-
Creates a DelegatingStateObserver.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onStateUpdated → OnStateUpdated?
-
The function called when a state changed.
final
- 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.override -
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