onPressed property
dynamic Function()?
onPressed
final
Callback when the button is tapped.
Implementation
final Function()? onPressed;
Callback when the button is tapped.
final Function()? onPressed;