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
- eventManager → EventManager
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceBinded → Object?
-
The reference instance to the current state.
no setterinherited
- instanceManager → InstanceManager
-
no setter
- isDisposed → bool
-
Returns
true
if the state has been disposed.no setterinherited - logger → Logger
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateManager
→ StateManager<
StateBase> -
no setter
Methods
-
bind(
Object instance) → void -
Stores a reference to an object instance
inherited
-
dispose(
) → void -
Called when this object is removed
inherited
-
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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unbind(
) → void -
Removes the reference to the object instance
inherited
-
update(
covariant Function fnUpdate) → void -
Executes
fnUpdate
, and notify the listeners about to update.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited