combineEffect<State, Event> function

Effect<State, Event>? combineEffect<State, Event>(
  1. Effect<State, Event>? effect,
  2. Effect<State, Event>? nextEffect
)

Implementation

Effect<State, Event>? combineEffect<State, Event>(
  Effect<State, Event>? effect,
  Effect<State, Event>? nextEffect,
) {
  return _combine(
    effect,
    nextEffect,
    combine: (effect, nextEffect) {
     return (oldState, event, state, dispatch) {
      effect(oldState, event, state, dispatch);
      nextEffect(oldState, event, state, dispatch);
    };
  });
}