kvision / pl.treksoft.kvision.state / stateBinding

stateBinding

fun <S : Any, CONT : Container> CONT.stateBinding(observableState: ObservableState<S>, factory: CONT.(S) -> Unit): StateBinding<S, CONT, Unit>

DSL builder extension function.

It takes the same parameters as the constructor of the built component.