state

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

Create a state using a high-level DSL and add it to this object. The state is not constructed immediately and is only constructed when build is called.


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

Register a state with the given StateLabel