onTap property

VoidCallback? onTap
final

An optional callback that will be invoked when the user taps this widget.

Implementation

final VoidCallback? onTap;