onPressed property

void Function() onPressed
final

Called when the button is tapped

Implementation

final void Function() onPressed;