MiddlewareBuilder<State extends Built<State, StateBuilder>, StateBuilder extends Builder<State, StateBuilder>, Actions extends ReduxActions> class

MiddlewareBuilder allows you to build a reducer that handles many different actions with many different payload types, while maintaining type safety. Each MiddlewareHandler added with add

Constructors

MiddlewareBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<Payload>(ActionName<Payload> aMgr, MiddlewareHandler<State, StateBuilder, Actions, Payload> handler) → void
build() Middleware<State, StateBuilder, Actions>
build returns a Middleware function that handles all actions added with add
combine(MiddlewareBuilder<State, StateBuilder, Actions> other) → void
combine combines this MiddlewareBuilder with another MiddlewareBuilder for the same type
combineNested<NestedState extends Built<NestedState, NestedStateBuilder>, NestedStateBuilder extends Builder<NestedState, NestedStateBuilder>, NestedActions extends ReduxActions>(NestedMiddlewareBuilder<State, StateBuilder, Actions, NestedState, NestedStateBuilder, NestedActions> other) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited