onPressed property

VoidCallback? onPressed
finalinherited

The callback that is called when the button is tapped or otherwise activated.

If this is set to null, the button will do a default action when it is tapped or activated.

Implementation

final VoidCallback? onPressed;