onPressed property

VoidCallback? onPressed
final

Called when the button is tapped or otherwise activated.

Setting this to null will disable the widget.

Implementation

final VoidCallback? onPressed;