actionStream<Payload> method
Stream<StoreChange<State, StateBuilder, Payload> >
actionStream<Payload>(
- ActionName<
Payload> actionName
actionStream returns a stream the fires when a state change is caused by the action with the name provided. Check out built_redux_rx if you are looking for streams to actions that do not necessarily result in state changes.
Implementation
Stream<StoreChange<State, StateBuilder, Payload>> actionStream<Payload>(
ActionName<Payload> actionName) =>
stream
.where((c) => c.action.name == actionName.name)
.map((c) => StoreChange<State, StateBuilder, Payload>(
c.next,
c.prev,
c.action as Action<Payload>,
));