onTap method
Wraps the widget in GestureDetector with onTap.
Implementation
Widget onTap(VoidCallback onTap,
{HitTestBehavior behavior = HitTestBehavior.opaque}) =>
GestureDetector(onTap: onTap, behavior: behavior, child: this);
Wraps the widget in GestureDetector with onTap.
Widget onTap(VoidCallback onTap,
{HitTestBehavior behavior = HitTestBehavior.opaque}) =>
GestureDetector(onTap: onTap, behavior: behavior, child: this);