onPressed property
void Function()?
onPressed
final
Callback when the button is pressed.
Implementation
final void Function()? onPressed;
Callback when the button is pressed.
final void Function()? onPressed;