onPressed property
final
The callback function that is called when the button is tapped.
If set to null, the button will be disabled.
Implementation
final VoidCallback onPressed
The callback function that is called when the button is tapped.
If set to null, the button will be disabled.
final VoidCallback onPressed