transitionTo

fun transitionTo(newState: S)

Transition to a new state.

Parameters

newState

The state to transition to