onTap method

GestureDetector onTap(
  1. GestureTapCallback? onTap, {
  2. Key? key,
})

Implementation

GestureDetector onTap(GestureTapCallback? onTap, {Key? key}) =>
    gestureDetector(onTap: onTap, key: key);