onPressed property

void Function()? onPressed
final

On Tap of button what should happen

Implementation

final void Function()? onPressed;