onTap property

VoidCallback onTap
final

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

Implementation

final VoidCallback onTap;