ReactterState class abstract
A abstract class that represents a stare in Reactter.
It provides methods for attaching and detaching an object instance to the state, notifying listeners of state changes, and disposing of the state object when it is no longer needed.
- 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
-
attachTo(
Object instance) → void - Attaches an object instance to this state.
-
detachInstance(
) → void - Detaches an object instance to this state.
-
dispose(
) → void - Called when this object is removed
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void - It's used to notify listeners that the state has been updated. It is typically called after making changes to the state object.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
covariant Function fnUpdate) → void -
Executes
fnUpdate
, and notify the listeners about to update.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited