onPressed property Null safety
final
The callback that is called when the button is tapped or otherwise activated.
If this callback and onLongPress are null, then the button will be disabled.
See also:
- enabled, which is true if the button is enabled.
Implementation
final VoidCallback? onPressed;