Next<State, Effect> typedef
Represents the result of handling a message with the update function.
State
: The new state to transition to. Ifnull
, no state change occurs.- List<Effect>: A list of side effects to execute after processing the message.
Implementation
@experimental
typedef Next<State, Effect> = (State?, List<Effect>);