onPressed property

VoidCallback? onPressed
final

Called when link is tapped.

If this callback is null, then the button will be disabled.

Implementation

final VoidCallback? onPressed;