gestures method

GestureDetector gestures({
  1. Key? key,
  2. void onTapDown(
    1. TapDownDetails
    )?,
  3. void onTapUp(
    1. TapUpDetails
    )?,
  4. void onTap()?,
  5. void onTapMove(
    1. TapMoveDetails
    )?,
  6. void onTapCancel()?,
  7. void onSecondaryTap()?,
  8. void onSecondaryTapDown(
    1. TapDownDetails
    )?,
  9. void onSecondaryTapUp(
    1. TapUpDetails
    )?,
  10. void onSecondaryTapCancel()?,
  11. void onTertiaryTapDown(
    1. TapDownDetails
    )?,
  12. void onTertiaryTapUp(
    1. TapUpDetails
    )?,
  13. void onTertiaryTapCancel()?,
  14. void onDoubleTapDown(
    1. TapDownDetails
    )?,
  15. void onDoubleTap()?,
  16. void onDoubleTapCancel()?,
  17. void onLongPressDown(
    1. LongPressDownDetails
    )?,
  18. void onLongPressCancel()?,
  19. void onLongPress()?,
  20. void onLongPressStart(
    1. LongPressStartDetails
    )?,
  21. void onLongPressMoveUpdate(
    1. LongPressMoveUpdateDetails
    )?,
  22. void onLongPressUp()?,
  23. void onLongPressEnd(
    1. LongPressEndDetails
    )?,
  24. void onSecondaryLongPressDown(
    1. LongPressDownDetails
    )?,
  25. void onSecondaryLongPressCancel()?,
  26. void onSecondaryLongPress()?,
  27. void onSecondaryLongPressStart(
    1. LongPressStartDetails
    )?,
  28. void onSecondaryLongPressMoveUpdate(
    1. LongPressMoveUpdateDetails
    )?,
  29. void onSecondaryLongPressUp()?,
  30. void onSecondaryLongPressEnd(
    1. LongPressEndDetails
    )?,
  31. void onTertiaryLongPressDown(
    1. LongPressDownDetails
    )?,
  32. void onTertiaryLongPressCancel()?,
  33. void onTertiaryLongPress()?,
  34. void onTertiaryLongPressStart(
    1. LongPressStartDetails
    )?,
  35. void onTertiaryLongPressMoveUpdate(
    1. LongPressMoveUpdateDetails
    )?,
  36. void onTertiaryLongPressUp()?,
  37. void onTertiaryLongPressEnd(
    1. LongPressEndDetails
    )?,
  38. void onVerticalDragDown(
    1. DragDownDetails
    )?,
  39. void onVerticalDragStart(
    1. DragStartDetails
    )?,
  40. void onVerticalDragUpdate(
    1. DragUpdateDetails
    )?,
  41. void onVerticalDragEnd(
    1. DragEndDetails
    )?,
  42. void onVerticalDragCancel()?,
  43. void onHorizontalDragDown(
    1. DragDownDetails
    )?,
  44. void onHorizontalDragStart(
    1. DragStartDetails
    )?,
  45. void onHorizontalDragUpdate(
    1. DragUpdateDetails
    )?,
  46. void onHorizontalDragEnd(
    1. DragEndDetails
    )?,
  47. void onHorizontalDragCancel()?,
  48. void onForcePressStart(
    1. ForcePressDetails
    )?,
  49. void onForcePressPeak(
    1. ForcePressDetails
    )?,
  50. void onForcePressUpdate(
    1. ForcePressDetails
    )?,
  51. void onForcePressEnd(
    1. ForcePressDetails
    )?,
  52. void onPanDown(
    1. DragDownDetails
    )?,
  53. void onPanStart(
    1. DragStartDetails
    )?,
  54. void onPanUpdate(
    1. DragUpdateDetails
    )?,
  55. void onPanEnd(
    1. DragEndDetails
    )?,
  56. void onPanCancel()?,
  57. void onScaleStart(
    1. ScaleStartDetails
    )?,
  58. void onScaleUpdate(
    1. ScaleUpdateDetails
    )?,
  59. void onScaleEnd(
    1. ScaleEndDetails
    )?,
  60. HitTestBehavior? behavior,
  61. bool excludeFromSemantics = false,
  62. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  63. bool trackpadScrollCausesScale = false,
  64. Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
  65. Set<PointerDeviceKind>? supportedDevices,
})

Returns a new GestureDetector widget with the given gestures.

Implementation

GestureDetector gestures({
  Key? key,
  void Function(TapDownDetails)? onTapDown,
  void Function(TapUpDetails)? onTapUp,
  void Function()? onTap,
  void Function(TapMoveDetails)? onTapMove,
  void Function()? onTapCancel,
  void Function()? onSecondaryTap,
  void Function(TapDownDetails)? onSecondaryTapDown,
  void Function(TapUpDetails)? onSecondaryTapUp,
  void Function()? onSecondaryTapCancel,
  void Function(TapDownDetails)? onTertiaryTapDown,
  void Function(TapUpDetails)? onTertiaryTapUp,
  void Function()? onTertiaryTapCancel,
  void Function(TapDownDetails)? onDoubleTapDown,
  void Function()? onDoubleTap,
  void Function()? onDoubleTapCancel,
  void Function(LongPressDownDetails)? onLongPressDown,
  void Function()? onLongPressCancel,
  void Function()? onLongPress,
  void Function(LongPressStartDetails)? onLongPressStart,
  void Function(LongPressMoveUpdateDetails)? onLongPressMoveUpdate,
  void Function()? onLongPressUp,
  void Function(LongPressEndDetails)? onLongPressEnd,
  void Function(LongPressDownDetails)? onSecondaryLongPressDown,
  void Function()? onSecondaryLongPressCancel,
  void Function()? onSecondaryLongPress,
  void Function(LongPressStartDetails)? onSecondaryLongPressStart,
  void Function(LongPressMoveUpdateDetails)? onSecondaryLongPressMoveUpdate,
  void Function()? onSecondaryLongPressUp,
  void Function(LongPressEndDetails)? onSecondaryLongPressEnd,
  void Function(LongPressDownDetails)? onTertiaryLongPressDown,
  void Function()? onTertiaryLongPressCancel,
  void Function()? onTertiaryLongPress,
  void Function(LongPressStartDetails)? onTertiaryLongPressStart,
  void Function(LongPressMoveUpdateDetails)? onTertiaryLongPressMoveUpdate,
  void Function()? onTertiaryLongPressUp,
  void Function(LongPressEndDetails)? onTertiaryLongPressEnd,
  void Function(DragDownDetails)? onVerticalDragDown,
  void Function(DragStartDetails)? onVerticalDragStart,
  void Function(DragUpdateDetails)? onVerticalDragUpdate,
  void Function(DragEndDetails)? onVerticalDragEnd,
  void Function()? onVerticalDragCancel,
  void Function(DragDownDetails)? onHorizontalDragDown,
  void Function(DragStartDetails)? onHorizontalDragStart,
  void Function(DragUpdateDetails)? onHorizontalDragUpdate,
  void Function(DragEndDetails)? onHorizontalDragEnd,
  void Function()? onHorizontalDragCancel,
  void Function(ForcePressDetails)? onForcePressStart,
  void Function(ForcePressDetails)? onForcePressPeak,
  void Function(ForcePressDetails)? onForcePressUpdate,
  void Function(ForcePressDetails)? onForcePressEnd,
  void Function(DragDownDetails)? onPanDown,
  void Function(DragStartDetails)? onPanStart,
  void Function(DragUpdateDetails)? onPanUpdate,
  void Function(DragEndDetails)? onPanEnd,
  void Function()? onPanCancel,
  void Function(ScaleStartDetails)? onScaleStart,
  void Function(ScaleUpdateDetails)? onScaleUpdate,
  void Function(ScaleEndDetails)? onScaleEnd,
  HitTestBehavior? behavior,
  bool excludeFromSemantics = false,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  bool trackpadScrollCausesScale = false,
  Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
  Set<PointerDeviceKind>? supportedDevices,
}) {
  return GestureDetector(
    key: key,
    behavior: behavior,
    dragStartBehavior: dragStartBehavior,
    excludeFromSemantics: excludeFromSemantics,
    onDoubleTap: onDoubleTap,
    onDoubleTapCancel: onDoubleTapCancel,
    onDoubleTapDown: onDoubleTapDown,
    onForcePressEnd: onForcePressEnd,
    onForcePressPeak: onForcePressPeak,
    onForcePressStart: onForcePressStart,
    onForcePressUpdate: onForcePressUpdate,
    onHorizontalDragCancel: onHorizontalDragCancel,
    onLongPress: onLongPress,
    onLongPressCancel: onLongPressCancel,
    onLongPressDown: onLongPressDown,
    onLongPressEnd: onLongPressEnd,
    onLongPressMoveUpdate: onLongPressMoveUpdate,
    onLongPressStart: onLongPressStart,
    onLongPressUp: onLongPressUp,
    onPanCancel: onPanCancel,
    onPanDown: onPanDown,
    onPanEnd: onPanEnd,
    onPanStart: onPanStart,
    onPanUpdate: onPanUpdate,
    onScaleEnd: onScaleEnd,
    onScaleStart: onScaleStart,
    onScaleUpdate: onScaleUpdate,
    onTap: onTap,
    onTapCancel: onTapCancel,
    onTapDown: onTapDown,
    onTapMove: onTapMove,
    onTapUp: onTapUp,
    onHorizontalDragDown: onHorizontalDragDown,
    onHorizontalDragStart: onHorizontalDragStart,
    onHorizontalDragUpdate: onHorizontalDragUpdate,
    onHorizontalDragEnd: onHorizontalDragEnd,
    onVerticalDragDown: onVerticalDragDown,
    onVerticalDragStart: onVerticalDragStart,
    onVerticalDragUpdate: onVerticalDragUpdate,
    onVerticalDragEnd: onVerticalDragEnd,
    onVerticalDragCancel: onVerticalDragCancel,
    trackpadScrollCausesScale: trackpadScrollCausesScale,
    trackpadScrollToScaleFactor: trackpadScrollToScaleFactor,
    supportedDevices: supportedDevices,
    onSecondaryLongPress: onSecondaryLongPress,
    onSecondaryLongPressCancel: onSecondaryLongPressCancel,
    onSecondaryLongPressDown: onSecondaryLongPressDown,
    onSecondaryLongPressEnd: onSecondaryLongPressEnd,
    onSecondaryLongPressMoveUpdate: onSecondaryLongPressMoveUpdate,
    onSecondaryLongPressStart: onSecondaryLongPressStart,
    onSecondaryLongPressUp: onSecondaryLongPressUp,
    onTertiaryLongPress: onTertiaryLongPress,
    onTertiaryLongPressCancel: onTertiaryLongPressCancel,
    onTertiaryLongPressDown: onTertiaryLongPressDown,
    onTertiaryLongPressEnd: onTertiaryLongPressEnd,
    onTertiaryLongPressMoveUpdate: onTertiaryLongPressMoveUpdate,
    onTertiaryLongPressStart: onTertiaryLongPressStart,
    onTertiaryLongPressUp: onTertiaryLongPressUp,
    onSecondaryTap: onSecondaryTap,
    onSecondaryTapCancel: onSecondaryTapCancel,
    onSecondaryTapDown: onSecondaryTapDown,
    onSecondaryTapUp: onSecondaryTapUp,
    onTertiaryTapCancel: onTertiaryTapCancel,
    onTertiaryTapDown: onTertiaryTapDown,
    onTertiaryTapUp: onTertiaryTapUp,
    child: this,
  );
}