onTap property

VoidCallback? onTap
final

Callback function triggered when the button is tapped.

When provided, this overrides the default behavior of the action type.

Implementation

final VoidCallback? onTap;