onPressed property
(dynamic Function()?)
onPressed
final
onPressed expects a function that will be executed on button press.
Implementation
final Function()? onPressed;
onPressed expects a function that will be executed on button press.
final Function()? onPressed;