StateInfixCreator

inner class StateInfixCreator

Utility class whose only role is to allow the default state construct to work. (default state { ... } and default state label).

Functions

Link copied to clipboard
infix fun state(labelOfDefaultState: StateLabel)

Declare that the default state is another labeled state, whose label is provided afterwards.

infix fun state(body: StateBuilder.() -> Unit)

Create a state.