onPressed property

void Function() onPressed
final

The callback invoked when the button is pressed.

Implementation

final void Function() onPressed;