onPressed property
void Function()?
onPressed
final
Called when the user press this button.
Implementation
final void Function()? onPressed;
Called when the user press this button.
final void Function()? onPressed;