toggled

fun toggled(listener: (Boolean) -> Unit?)

Sets a toggle listener, which will be called whenever this button is toggled.