onPressed

abstract fun onPressed(callback: Button.() -> Unit)

Specify the callback when the push button is pressed. If specified multiple times, the last callback overrides the previous ones.

Parameters

callback

The callback which is called when the push button is pressed.