onPressed property
final
The callback that is called when the button is tapped or otherwise activated.
If onPressed and onLongPress callbacks are null, then the button will be disabled.
Implementation
final VoidCallback? onPressed;
The callback that is called when the button is tapped or otherwise activated.
If onPressed and onLongPress callbacks are null, then the button will be disabled.
final VoidCallback? onPressed;