onClick property

Function onClick
final

The callback function that is called when the button is pressed.

Implementation

final Function onClick;