onChange

fun onChange(block: (P) -> Unit): FunctionalComponentStateProperty<P>

Adds a callback that will be called whenever the value has changed