onPressed property
(void Function()?)
onPressed
final
Action that is performed when the widget is clicked.
Implementation
final void Function()? onPressed;
Action that is performed when the widget is clicked.
final void Function()? onPressed;