DevToolsState<S> class
The DevToolsState is a wrapper around your application's normal State. It holds all of the actions and resulting states
Constructors
-
DevToolsState(List<
S> computedStates, List stagedActions, int currentPosition) - Create the DevToolsState in the simplest possible way
-
DevToolsState.fromApp(DevToolsState<
S> state, DevToolsAction devToolsAction, List<S> computedStates, List stagedActions, Reducer<S> appReducer) -
Create a new instance of the DevToolsState using a normal application
Action and Reducer.
factory
Properties
-
computedStates
→ List<
S> -
List of computed states after committed.
final
- currentAppState → S
-
This is the current state of the application itself. The DevToolsState
is simply a wrapper around your application's normal state.
no setter
- currentPosition → int
-
Determines which of the computedStates is the current state. This allows
you to skip back and forth in time.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- latestAction → dynamic
-
The latest action that has been dispatched through the
Store
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- savedState → S
-
The last saved state, or the initial state if a Save action has not been
dispatched. If you dispatch a Reset action, the store will be reset to the
last saved state.
no setter
- stagedActions → List
-
List of all actions that have been dispatched since the initial state of
the app or the last save point if a Save action has been dispatched.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override