Next<State, Effect> typedef

  1. @experimental
Next<State, Effect> = (State?, List<Effect>)

Represents the result of handling a message with the update function.

  • State: The new state to transition to. If null, 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>);