combineEffect<State, Event> function
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);
};
});
}