onEvent

fun <P> onEvent(event: VoidEvent<T, P>, init: Block.VoidEventBlock<T, P, ModelStates, C, V>.() -> Unit)