SimpleBloc<S> class
abstract
A convenience Bloc class that handles the stream mapping bits for you. Subclasses can simply override middleware, reducer, and afterware to add their implementations.
- Implemented types
-
- Bloc<
S>
- Bloc<
Constructors
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
-
afterware(
DispatchFunction dispatcher, S state, Action action) → FutureOr< Action> -
applyAfterware(
Stream< WareContext< input) → Stream<S> >WareContext< S> > -
override
-
applyMiddleware(
Stream< WareContext< input) → Stream<S> >WareContext< S> > -
override
-
applyReducer(
Stream< Accumulator< input) → Stream<S> >Accumulator< S> > -
override
-
dispose(
) → void -
override
-
middleware(
DispatchFunction dispatcher, S state, Action action) → FutureOr< Action> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reducer(
S state, Action action) → S -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited