GestureDetector constructor

const GestureDetector({
  1. Key? key,
  2. Widget? child,
  3. GestureTapDownCallback? onTapDown,
  4. GestureTapUpCallback? onTapUp,
  5. GestureTapCallback? onTap,
  6. GestureTapCancelCallback? onTapCancel,
  7. GestureTapCallback? onSecondaryTap,
  8. GestureTapDownCallback? onSecondaryTapDown,
  9. GestureTapUpCallback? onSecondaryTapUp,
  10. GestureTapCancelCallback? onSecondaryTapCancel,
  11. GestureTapDownCallback? onTertiaryTapDown,
  12. GestureTapUpCallback? onTertiaryTapUp,
  13. GestureTapCancelCallback? onTertiaryTapCancel,
  14. GestureTapDownCallback? onDoubleTapDown,
  15. GestureTapCallback? onDoubleTap,
  16. GestureTapCancelCallback? onDoubleTapCancel,
  17. GestureLongPressCallback? onLongPress,
  18. GestureLongPressStartCallback? onLongPressStart,
  19. GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  20. GestureLongPressUpCallback? onLongPressUp,
  21. GestureLongPressEndCallback? onLongPressEnd,
  22. GestureLongPressCallback? onSecondaryLongPress,
  23. GestureLongPressStartCallback? onSecondaryLongPressStart,
  24. GestureLongPressMoveUpdateCallback? onSecondaryLongPressMoveUpdate,
  25. GestureLongPressUpCallback? onSecondaryLongPressUp,
  26. GestureLongPressEndCallback? onSecondaryLongPressEnd,
  27. GestureLongPressCallback? onTertiaryLongPress,
  28. GestureLongPressStartCallback? onTertiaryLongPressStart,
  29. GestureLongPressMoveUpdateCallback? onTertiaryLongPressMoveUpdate,
  30. GestureLongPressUpCallback? onTertiaryLongPressUp,
  31. GestureLongPressEndCallback? onTertiaryLongPressEnd,
  32. GestureDragDownCallback? onVerticalDragDown,
  33. GestureDragStartCallback? onVerticalDragStart,
  34. GestureDragUpdateCallback? onVerticalDragUpdate,
  35. GestureDragEndCallback? onVerticalDragEnd,
  36. GestureDragCancelCallback? onVerticalDragCancel,
  37. GestureDragDownCallback? onHorizontalDragDown,
  38. GestureDragStartCallback? onHorizontalDragStart,
  39. GestureDragUpdateCallback? onHorizontalDragUpdate,
  40. GestureDragEndCallback? onHorizontalDragEnd,
  41. GestureDragCancelCallback? onHorizontalDragCancel,
  42. GestureForcePressStartCallback? onForcePressStart,
  43. GestureForcePressPeakCallback? onForcePressPeak,
  44. GestureForcePressUpdateCallback? onForcePressUpdate,
  45. GestureForcePressEndCallback? onForcePressEnd,
  46. GestureDragDownCallback? onPanDown,
  47. GestureDragStartCallback? onPanStart,
  48. GestureDragUpdateCallback? onPanUpdate,
  49. GestureDragEndCallback? onPanEnd,
  50. GestureDragCancelCallback? onPanCancel,
  51. GestureScaleStartCallback? onScaleStart,
  52. GestureScaleUpdateCallback? onScaleUpdate,
  53. GestureScaleEndCallback? onScaleEnd,
  54. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  55. bool excludeFromSemantics = false,
})

Implementation

const GestureDetector({
  super.key,
  this.child,
  this.onTapDown,
  this.onTapUp,
  this.onTap,
  this.onTapCancel,
  this.onSecondaryTap,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onTertiaryTapDown,
  this.onTertiaryTapUp,
  this.onTertiaryTapCancel,
  this.onDoubleTapDown,
  this.onDoubleTap,
  this.onDoubleTapCancel,
  this.onLongPress,
  this.onLongPressStart,
  this.onLongPressMoveUpdate,
  this.onLongPressUp,
  this.onLongPressEnd,
  this.onSecondaryLongPress,
  this.onSecondaryLongPressStart,
  this.onSecondaryLongPressMoveUpdate,
  this.onSecondaryLongPressUp,
  this.onSecondaryLongPressEnd,
  this.onTertiaryLongPress,
  this.onTertiaryLongPressStart,
  this.onTertiaryLongPressMoveUpdate,
  this.onTertiaryLongPressUp,
  this.onTertiaryLongPressEnd,
  this.onVerticalDragDown,
  this.onVerticalDragStart,
  this.onVerticalDragUpdate,
  this.onVerticalDragEnd,
  this.onVerticalDragCancel,
  this.onHorizontalDragDown,
  this.onHorizontalDragStart,
  this.onHorizontalDragUpdate,
  this.onHorizontalDragEnd,
  this.onHorizontalDragCancel,
  this.onForcePressStart,
  this.onForcePressPeak,
  this.onForcePressUpdate,
  this.onForcePressEnd,
  this.onPanDown,
  this.onPanStart,
  this.onPanUpdate,
  this.onPanEnd,
  this.onPanCancel,
  this.onScaleStart,
  this.onScaleUpdate,
  this.onScaleEnd,
  this.behavior = HitTestBehavior.deferToChild,
  this.excludeFromSemantics = false,
});