onPressed property
(void Function()?)
onPressed
final
The callback that is called when the button is pressed.
Implementation
final void Function()? onPressed;
The callback that is called when the button is pressed.
final void Function()? onPressed;