becomes

infix fun becomes(newState: S): TransitionWithSideEffect<S, E>

Specifies the target state for the transition.

Example:

on TimerExpired becomes Green