gestureDetector method

GestureDetector gestureDetector({
  1. Key? key,
  2. GestureTapDownCallback? onTapDown,
  3. GestureTapUpCallback? onTapUp,
  4. GestureTapCallback? onTap,
  5. GestureTapCancelCallback? onTapCancel,
  6. GestureTapDownCallback? onSecondaryTapDown,
  7. GestureTapUpCallback? onSecondaryTapUp,
  8. GestureTapCancelCallback? onSecondaryTapCancel,
  9. GestureTapCallback? onDoubleTap,
  10. GestureLongPressCallback? onLongPress,
  11. GestureLongPressStartCallback? onLongPressStart,
  12. GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  13. GestureLongPressUpCallback? onLongPressUp,
  14. GestureLongPressEndCallback? onLongPressEnd,
  15. GestureDragDownCallback? onVerticalDragDown,
  16. GestureDragStartCallback? onVerticalDragStart,
  17. GestureDragUpdateCallback? onVerticalDragUpdate,
  18. GestureDragEndCallback? onVerticalDragEnd,
  19. GestureDragCancelCallback? onVerticalDragCancel,
  20. GestureDragDownCallback? onHorizontalDragDown,
  21. GestureDragStartCallback? onHorizontalDragStart,
  22. GestureDragUpdateCallback? onHorizontalDragUpdate,
  23. GestureDragEndCallback? onHorizontalDragEnd,
  24. GestureDragCancelCallback? onHorizontalDragCancel,
  25. GestureForcePressStartCallback? onForcePressStart,
  26. GestureForcePressPeakCallback? onForcePressPeak,
  27. GestureForcePressUpdateCallback? onForcePressUpdate,
  28. GestureForcePressEndCallback? onForcePressEnd,
  29. GestureDragDownCallback? onPanDown,
  30. GestureDragStartCallback? onPanStart,
  31. GestureDragUpdateCallback? onPanUpdate,
  32. GestureDragEndCallback? onPanEnd,
  33. GestureDragCancelCallback? onPanCancel,
  34. GestureScaleStartCallback? onScaleStart,
  35. GestureScaleUpdateCallback? onScaleUpdate,
  36. GestureScaleEndCallback? onScaleEnd,
  37. HitTestBehavior? behavior,
  38. bool excludeFromSemantics = false,
  39. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

Implementation

GestureDetector gestureDetector({
  Key? key,
  GestureTapDownCallback? onTapDown,
  GestureTapUpCallback? onTapUp,
  GestureTapCallback? onTap,
  GestureTapCancelCallback? onTapCancel,
  GestureTapDownCallback? onSecondaryTapDown,
  GestureTapUpCallback? onSecondaryTapUp,
  GestureTapCancelCallback? onSecondaryTapCancel,
  GestureTapCallback? onDoubleTap,
  GestureLongPressCallback? onLongPress,
  GestureLongPressStartCallback? onLongPressStart,
  GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  GestureLongPressUpCallback? onLongPressUp,
  GestureLongPressEndCallback? onLongPressEnd,
  GestureDragDownCallback? onVerticalDragDown,
  GestureDragStartCallback? onVerticalDragStart,
  GestureDragUpdateCallback? onVerticalDragUpdate,
  GestureDragEndCallback? onVerticalDragEnd,
  GestureDragCancelCallback? onVerticalDragCancel,
  GestureDragDownCallback? onHorizontalDragDown,
  GestureDragStartCallback? onHorizontalDragStart,
  GestureDragUpdateCallback? onHorizontalDragUpdate,
  GestureDragEndCallback? onHorizontalDragEnd,
  GestureDragCancelCallback? onHorizontalDragCancel,
  GestureForcePressStartCallback? onForcePressStart,
  GestureForcePressPeakCallback? onForcePressPeak,
  GestureForcePressUpdateCallback? onForcePressUpdate,
  GestureForcePressEndCallback? onForcePressEnd,
  GestureDragDownCallback? onPanDown,
  GestureDragStartCallback? onPanStart,
  GestureDragUpdateCallback? onPanUpdate,
  GestureDragEndCallback? onPanEnd,
  GestureDragCancelCallback? onPanCancel,
  GestureScaleStartCallback? onScaleStart,
  GestureScaleUpdateCallback? onScaleUpdate,
  GestureScaleEndCallback? onScaleEnd,
  HitTestBehavior? behavior,
  bool excludeFromSemantics = false,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
    GestureDetector(
        key: key,
        onTapDown: onTapDown,
        onTapUp: onTapUp,
        onTap: onTap,
        onTapCancel: onTapCancel,
        onSecondaryTapDown: onSecondaryTapDown,
        onSecondaryTapUp: onSecondaryTapUp,
        onSecondaryTapCancel: onSecondaryTapCancel,
        onDoubleTap: onDoubleTap,
        onLongPress: onLongPress,
        onLongPressStart: onLongPressStart,
        onLongPressMoveUpdate: onLongPressMoveUpdate,
        onLongPressUp: onLongPressUp,
        onLongPressEnd: onLongPressEnd,
        onVerticalDragDown: onVerticalDragDown,
        onVerticalDragStart: onVerticalDragStart,
        onVerticalDragUpdate: onVerticalDragUpdate,
        onVerticalDragEnd: onVerticalDragEnd,
        onVerticalDragCancel: onVerticalDragCancel,
        onHorizontalDragDown: onHorizontalDragDown,
        onHorizontalDragStart: onHorizontalDragStart,
        onHorizontalDragUpdate: onHorizontalDragUpdate,
        onHorizontalDragEnd: onHorizontalDragEnd,
        onHorizontalDragCancel: onHorizontalDragCancel,
        onForcePressStart: onForcePressStart,
        onForcePressPeak: onForcePressPeak,
        onForcePressUpdate: onForcePressUpdate,
        onForcePressEnd: onForcePressEnd,
        onPanDown: onPanDown,
        onPanStart: onPanStart,
        onPanUpdate: onPanUpdate,
        onPanEnd: onPanEnd,
        onPanCancel: onPanCancel,
        onScaleStart: onScaleStart,
        onScaleUpdate: onScaleUpdate,
        onScaleEnd: onScaleEnd,
        behavior: behavior,
        excludeFromSemantics: excludeFromSemantics,
        dragStartBehavior: dragStartBehavior,
        child: this);