onPressed property
final
Called when the button is tapped or otherwise activated.
Setting this to null will disable the widget.
Implementation
final VoidCallback? onPressed;
Called when the button is tapped or otherwise activated.
Setting this to null will disable the widget.
final VoidCallback? onPressed;