Effect<State extends StoreState> typedef
Effect<State extends StoreState> =
Stream Function(BehaviorSubject<StoreAction> , Store<State> store)
A function that handles an incoming stream of actions, optionally
performs side effects upon receiving an action, and optionally returns
a new StoreAction
which will be dispatched by the store.
Implementation
typedef Effect<State extends StoreState> = Stream<dynamic> Function(
BehaviorSubject<StoreAction>,
Store<State> store,
);