whenState

fun whenState(currentState: S, handler: DslStateMapEventHandler<S, E, C, A, R>.() -> Unit): DslStateMapEventHandler<S, E, C, A, R>

Defines a section for a specific state.

Parameters

currentState

The give state

handler

A lambda with definitions for the given state