ReduxStore class
A store for app state that manages the dispatch of incoming actions and controls the stream of state objects emitted in response.
ReduxStore performs these tasks:
- Create a controller for the dispatch/reduce stream using an initialState value.
- Wire each ReduxBloc into the dispatch/reduce stream by calling its applyMiddleware, applyReducers, and applyAfterware methods.
- Expose the dispatch method with which a new ReduxAction can be dispatched.
Constructors
-
ReduxStore({List<
ReduxBloc> blocs = const [], bool isDebug = false, bool isRecordTrace = true})
Properties
-
actionListener
→ Stream<
ReduxAction> -
no setter
-
debugActionList
→ List<
ReduxAction> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDebug → bool
-
final
- isRecordTrace → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ BehaviorSubject<
ReduxStateInner> -
final
Methods
-
clearDebugActionList(
) → void -
dispatch(
ReduxAction action) → void -
dispose(
) → void - Invokes the dispose method on each Bloc, so they can deallocate/close any long-lived resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popState(
String name) → void -
pushState(
String name) → void -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildState(
List< ReduxBloc> blocs) → ReduxStateInner