dart_dva library

Classes

Dva
DvaAction
DvaEffect
[...]
DvaError
DvaModel<State>
[...]
DvaReducer<State>
DvaUtils
MiddlewareClass<State>
Defines a Middleware using a Class interface. [...]
ReducerClass<State>
Defines a Reducer using a class interface. [...]
Store<State>
Creates a Redux store that holds the app state tree. [...]
TypedMiddleware<State, Action>
A convenience type for binding a piece of Middleware to an Action of a specific type. Allows for Type Safe Middleware and reduces boilerplate. [...]
TypedReducer<State, Action>
A convenience class for binding Reducers to Actions of a given Type. This allows for type safe Reducers and reduces boilerplate. [...]

Functions

combineReducers<State>(Iterable<Reducer<State>> reducers) Reducer<State>
Defines a utility function that combines several reducers. [...]
copyValue({dynamic old, String key, Map<String, dynamic> newMap}) → dynamic
Tools 工具方法

Typedefs

Call(Function func) → void
DvaDispatch(DvaAction action) Future
可以监听异步完成的dispatch
EffectHandler(Store store, DvaAction action, DvaUtils utils) Future<Null>
Middleware<State>(Store<State> store, dynamic action, NextDispatcher next) → void
A function that intercepts actions and potentially transform actions before they reach the reducer. [...]
NextDispatcher(dynamic action) → void
The contract between one piece of middleware and the next in the chain. Use it to send the current action in your Middleware to the next piece of Middleware in the chain. [...]
Put(DvaAction action) Future
Reducer<State>(State state, dynamic action) → State
Defines an application's state change [...]