Effect<State, Event> typedef

Effect<State, Event> = void Function(State state, State? oldState, Event? event, Dispatch<Event> dispatch)

Describe how side effect are performed

Implementation

typedef Effect<State, Event> = void Function(State state, State? oldState, Event? event, Dispatch<Event> dispatch);