onTap method
Wraps the widget in a GestureDetector for tap detection.
Implementation
Widget onTap(void Function()? onTap) =>
GestureDetector(onTap: onTap, child: this);
Wraps the widget in a GestureDetector for tap detection.
Widget onTap(void Function()? onTap) =>
GestureDetector(onTap: onTap, child: this);