agility_redux_bloc library

Classes

Accumulator
An accumulator for reducer functions.
ActionSubscriber<T>
ActionSubscriberState<T>
Afterware
AppNavigator
Application navigator There are two nested navigator, page and popup box
AppNavigatorContainer
Bloc
Represents a pluggable business module
BlocManager
Business module manager, singleton
BlocPageRoute<T>
Page route of business module
BlocPopupBoxRoute<T>
Popup box route of business module
BlocRouteSettings
Data that might be useful in constructing a Route.
BlocState<T extends StatefulWidget>
Add dispatcher, to the initState method and dispose method of StatefulWidget's State
BlocWidget
Widget that can be exported by a business module
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.
DispatchSubscriber<S>
Retrieves a DispatcherFunction] from an ancestor StoreProvider, and builds builds widgets that can use it.
Global navigator, there may be multiple navigators
Represents a global navigator, because there may be multiple navigator in the application
Middleware
ModelNameProvider
Navigator within the application Usually used as a non-fullscreen navigator on a large screen
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
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
ReduxViewModel
ViewModel must be override == function
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.
StateStackMapProvider
StoreProvider
A StatelessWidget that provides Store access to its descendants via a static of method.
TypedReduxBloc<S, T>
To reduce if judgment, you can register specific types of action handlers
ViewModelSubscriber<V extends ReduxViewModel>
Transforms a stream of state objects found via StoreProvider into a stream of view models, and builds a Widget each time a distinctly new view model is emitted by that stream.
WareContext
The context in which a middleware or afterware function executes.

Functions

check() bool

Typedefs

BlocFunction = Future Function(Map<String, dynamic> arguments, DispatchFunction dispatcher, ReduxState state)
BlocPageBuilder = BlocPageRoute Function(BlocRouteSettings settings)
BlocPopupBoxBuilder = BlocPopupBoxRoute Function(BlocRouteSettings settings)
BlocWidgetBuilder = Widget Function(Map<String, dynamic> arguments, Widget? child)
DispatchFunction = void Function(ReduxAction action)
A function that can dispatch an ReduxAction to a ReduxStore.
DispatchWidgetBuilder = Widget Function(BuildContext context, DispatchFunction dispatcher)
Widget builder function that includes a dispatcher capable of dispatching an Action to an inherited Store.
ReceivedActionFunction<T> = dynamic Function(T action)
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)
ViewModelConverter<V extends ReduxViewModel> = V Function(ReduxState state)
Creates a new view model instance from the given state object. This method should be used to narrow or filter the data present in state to the minimum required by the ViewModelWidgetBuilder the converter will be used with.
ViewModelWidgetBuilder<V extends ReduxViewModel> = Widget Function(BuildContext context, DispatchFunction dispatcher, V viewModel)
Accepts a BuildContext and ViewModel and builds a Widget in response. A DispatchFunction is provided so widgets in the returned subtree can dispatch new actions to the Store in response to UI events.