onPressed property

VoidCallback? onPressed
final

Called when the button is tapped or otherwise activated.

If this callback and onLongPress are null, then the button will be disabled.

See also:

  • enabled, which is true if the button is enabled.

Implementation

final VoidCallback? onPressed;