useGesture method

void useGesture({
  1. void tapDown(
    1. TapDownDetails
    )?,
  2. void tapUp(
    1. TapUpDetails
    )?,
  3. VoidCallback? tap,
  4. VoidCallback? tapCancel,
  5. VoidCallback? secondaryTap,
  6. void secondaryTapDown(
    1. TapDownDetails
    )?,
  7. void secondaryTapUp(
    1. TapUpDetails
    )?,
  8. VoidCallback? secondaryTapCancel,
  9. void tertiaryTapDown(
    1. TapDownDetails
    )?,
  10. void tertiaryTapUp(
    1. TapUpDetails
    )?,
  11. VoidCallback? tertiaryTapCancel,
  12. void doubleTapDown(
    1. TapDownDetails
    )?,
  13. VoidCallback? doubleTap,
  14. VoidCallback? doubleTapCancel,
  15. VoidCallback? longPress,
  16. void longPressStart(
    1. LongPressStartDetails
    )?,
  17. void longPressMoveUpdate(
    1. LongPressMoveUpdateDetails
    )?,
  18. VoidCallback? longPressUp,
  19. void longPressEnd(
    1. LongPressEndDetails
    )?,
  20. VoidCallback? secondaryLongPress,
  21. void secondaryLongPressStart(
    1. LongPressStartDetails
    )?,
  22. void secondaryLongPressMoveUpdate(
    1. LongPressMoveUpdateDetails
    )?,
  23. VoidCallback? secondaryLongPressUp,
  24. void secondaryLongPressEnd(
    1. LongPressEndDetails
    )?,
  25. void verticalDragDown(
    1. DragDownDetails
    )?,
  26. void verticalDragStart(
    1. DragStartDetails
    )?,
  27. void verticalDragUpdate(
    1. DragUpdateDetails
    )?,
  28. void verticalDragEnd(
    1. DragEndDetails
    )?,
  29. VoidCallback? verticalDragCancel,
  30. void horizontalDragDown(
    1. DragDownDetails
    )?,
  31. void horizontalDragStart(
    1. DragStartDetails
    )?,
  32. void horizontalDragUpdate(
    1. DragUpdateDetails
    )?,
  33. void horizontalDragEnd(
    1. DragEndDetails
    )?,
  34. VoidCallback? horizontalDragCancel,
  35. void forcePressStart(
    1. ForcePressDetails
    )?,
  36. void forcePressPeak(
    1. ForcePressDetails
    )?,
  37. void forcePressUpdate(
    1. ForcePressDetails
    )?,
  38. void forcePressEnd(
    1. ForcePressDetails
    )?,
  39. void panDown(
    1. DragDownDetails
    )?,
  40. void panStart(
    1. DragStartDetails
    )?,
  41. void panUpdate(
    1. DragUpdateDetails
    )?,
  42. void panEnd(
    1. DragEndDetails
    )?,
  43. VoidCallback? panCancel,
  44. void scaleStart(
    1. ScaleStartDetails
    )?,
  45. void scaleUpdate(
    1. ScaleUpdateDetails
    )?,
  46. void scaleEnd(
    1. ScaleEndDetails
    )?,
})

Implementation

void useGesture({
  void Function(TapDownDetails)? tapDown,
  void Function(TapUpDetails)? tapUp,
  VoidCallback? tap,
  VoidCallback? tapCancel,
  VoidCallback? secondaryTap,
  void Function(TapDownDetails)? secondaryTapDown,
  void Function(TapUpDetails)? secondaryTapUp,
  VoidCallback? secondaryTapCancel,
  void Function(TapDownDetails)? tertiaryTapDown,
  void Function(TapUpDetails)? tertiaryTapUp,
  VoidCallback? tertiaryTapCancel,
  void Function(TapDownDetails)? doubleTapDown,
  VoidCallback? doubleTap,
  VoidCallback? doubleTapCancel,
  VoidCallback? longPress,
  void Function(LongPressStartDetails)? longPressStart,
  void Function(LongPressMoveUpdateDetails)? longPressMoveUpdate,
  VoidCallback? longPressUp,
  void Function(LongPressEndDetails)? longPressEnd,
  VoidCallback? secondaryLongPress,
  void Function(LongPressStartDetails)? secondaryLongPressStart,
  void Function(LongPressMoveUpdateDetails)? secondaryLongPressMoveUpdate,
  VoidCallback? secondaryLongPressUp,
  void Function(LongPressEndDetails)? secondaryLongPressEnd,
  void Function(DragDownDetails)? verticalDragDown,
  void Function(DragStartDetails)? verticalDragStart,
  void Function(DragUpdateDetails)? verticalDragUpdate,
  void Function(DragEndDetails)? verticalDragEnd,
  VoidCallback? verticalDragCancel,
  void Function(DragDownDetails)? horizontalDragDown,
  void Function(DragStartDetails)? horizontalDragStart,
  void Function(DragUpdateDetails)? horizontalDragUpdate,
  void Function(DragEndDetails)? horizontalDragEnd,
  VoidCallback? horizontalDragCancel,
  void Function(ForcePressDetails)? forcePressStart,
  void Function(ForcePressDetails)? forcePressPeak,
  void Function(ForcePressDetails)? forcePressUpdate,
  void Function(ForcePressDetails)? forcePressEnd,
  void Function(DragDownDetails)? panDown,
  void Function(DragStartDetails)? panStart,
  void Function(DragUpdateDetails)? panUpdate,
  void Function(DragEndDetails)? panEnd,
  VoidCallback? panCancel,
  void Function(ScaleStartDetails)? scaleStart,
  void Function(ScaleUpdateDetails)? scaleUpdate,
  void Function(ScaleEndDetails)? scaleEnd,
}) =>
    $parent
      ..on(
        tapDown: tapDown,
        tapUp: tapUp,
        tap: tap,
        tapCancel: tapCancel,
        secondaryTap: secondaryTap,
        secondaryTapDown: secondaryTapDown,
        secondaryTapUp: secondaryTapUp,
        secondaryTapCancel: secondaryTapCancel,
        tertiaryTapDown: tertiaryTapDown,
        tertiaryTapUp: tertiaryTapUp,
        tertiaryTapCancel: tertiaryTapCancel,
        doubleTapDown: doubleTapDown,
        doubleTap: doubleTap,
        doubleTapCancel: doubleTapCancel,
        longPress: longPress,
        longPressStart: longPressStart,
        longPressMoveUpdate: longPressMoveUpdate,
        longPressUp: longPressUp,
        longPressEnd: longPressEnd,
        secondaryLongPress: secondaryLongPress,
        secondaryLongPressStart: secondaryLongPressStart,
        secondaryLongPressMoveUpdate: secondaryLongPressMoveUpdate,
        secondaryLongPressUp: secondaryLongPressUp,
        secondaryLongPressEnd: secondaryLongPressEnd,
        verticalDragDown: verticalDragDown,
        verticalDragStart: verticalDragStart,
        verticalDragUpdate: verticalDragUpdate,
        verticalDragEnd: verticalDragEnd,
        verticalDragCancel: verticalDragCancel,
        horizontalDragDown: horizontalDragDown,
        horizontalDragStart: horizontalDragStart,
        horizontalDragUpdate: horizontalDragUpdate,
        horizontalDragEnd: horizontalDragEnd,
        horizontalDragCancel: horizontalDragCancel,
        forcePressStart: forcePressStart,
        forcePressPeak: forcePressPeak,
        forcePressUpdate: forcePressUpdate,
        forcePressEnd: forcePressEnd,
        panDown: panDown,
        panStart: panStart,
        panUpdate: panUpdate,
        panEnd: panEnd,
        panCancel: panCancel,
        scaleStart: scaleStart,
        scaleUpdate: scaleUpdate,
        scaleEnd: scaleEnd,
      );