onPressed property
final
Called when the button is tapped or otherwise activated.
If this is set to null, the button will be disabled, see enabled.
Implementation
final VoidCallback onPressed
Called when the button is tapped or otherwise activated.
If this is set to null, the button will be disabled, see enabled.
final VoidCallback onPressed