onPressed property

VoidCallback? onPressed
final

Called when the button is tapped or otherwise activated.

If this is null, the button will be disabled.

Implementation

final VoidCallback? onPressed;