gestureDetector method

Widget gestureDetector({
  1. required VoidCallback onTap,
  2. HitTestBehavior? behavior = HitTestBehavior.translucent,
})

Implementation

Widget gestureDetector({
  required VoidCallback onTap,
  HitTestBehavior? behavior = HitTestBehavior.translucent,
}) =>
    GestureDetector(
      behavior: behavior,
      onTap: onTap,
      child: this,
    );