onPressed property

void Function()? onPressed
final

Callback when button is clicked

Implementation

final void Function()? onPressed;