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

Constructors

SimpleBloc()

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<S>> input) Stream<WareContext<S>>
override
applyMiddleware(Stream<WareContext<S>> input) Stream<WareContext<S>>
override
applyReducer(Stream<Accumulator<S>> input) Stream<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