onTap property

(void Function(GestureDetails)?) onTap
final

The callback function called when a tappable element is tapped.

The argument with the same name in the relevant definition takes precedence over this.

Implementation

final void Function(GestureDetails)? onTap;