onClick property

VoidCallback? onClick
final

The callback function to be executed when the button is clicked.

Implementation

final VoidCallback? onClick;