onPressed property
(dynamic Function()?)
onPressed
final
defines the function to execute on press of this button.
Implementation
final Function()? onPressed;
defines the function to execute on press of this button.
final Function()? onPressed;