agility_redux_inner library

Classes

Accumulator
An accumulator for reducer functions.
Afterware
CancelledAction
An action that middleware and afterware methods can return in order to cancel (or "swallow") an action already dispatched to their ReduxStore. Because rebloc uses a stream to track Actions through the dispatch->middleware->reducer->afterware pipeline, a middleware/afterware method should return something. By returning an instance of this class (which is private to this library), a developer can in effect cancel actions via middleware.
GlobalStore
Global singleton of ReduxStore
Middleware
PrivateReducer
Reducer
ReduxAction
A Redux-style action. Apps change their overall state by dispatching actions to the ReduxStore, where they are acted on by middleware, reducers, and afterware in that order.
ReduxActionHandler
ReduxBloc<S, T>
A business logic component that can apply middleware, reducer, and afterware functionality to a ReduxStore by transforming the streams passed into its applyMiddleware, applyReducer, and applyAfterware methods.
ReduxBroadcastAction
Notification redux action, send action only for specified modules
ReduxNotificationAction
Notification redux action, send action only for specified modules
ReduxPrivateAction
Private redux action, receives action only for specified modules.
ReduxState
State of a specific module
ReduxStateInner
State used internally
ReduxStateItem<T>
The state of each module needs to implement the clone method
ReduxStore
A store for app state that manages the dispatch of incoming actions and controls the stream of state objects emitted in response.
ReduxUnicastAction
Notification redux action, receives action only for specified modules
SimpleReduxBloc<S, T>
A convenience ReduxBloc class that handles the stream mapping bits for you. Subclasses can simply override middleware, reducer, and afterware to add their implementations.
TypedReduxBloc<S, T>
To reduce if judgment, you can register specific types of action handlers
WareContext
The context in which a middleware or afterware function executes.

Functions

check() bool

Typedefs

DispatchFunction = void Function(ReduxAction action)
A function that can dispatch an ReduxAction to a ReduxStore.
TypedMiddlewareFunction = FutureOr<void> Function(DispatchFunction dispatcher, ReduxState state, ReduxAction action)
TypedPrivateReducerFunction<S, T> = T Function(ReduxAction action, S state, T newPrivateState)
TypedReducerFunction<S, T> = S Function(ReduxAction action, S newState, T privateState)