on method

void on({
  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 on({
  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,
}) =>
    _add(
      (w) => GestureDetector(
        onTapDown: tapDown,
        onTapUp: tapUp,
        onTap: tap,
        onTapCancel: tapCancel,
        onSecondaryTap: secondaryTap,
        onSecondaryTapDown: secondaryTapDown,
        onSecondaryTapUp: secondaryTapUp,
        onSecondaryTapCancel: secondaryTapCancel,
        onTertiaryTapDown: tertiaryTapDown,
        onTertiaryTapUp: tertiaryTapUp,
        onTertiaryTapCancel: tertiaryTapCancel,
        onDoubleTapDown: doubleTapDown,
        onDoubleTap: doubleTap,
        onDoubleTapCancel: doubleTapCancel,
        onLongPress: longPress,
        onLongPressStart: longPressStart,
        onLongPressMoveUpdate: longPressMoveUpdate,
        onLongPressUp: longPressUp,
        onLongPressEnd: longPressEnd,
        onSecondaryLongPress: secondaryLongPress,
        onSecondaryLongPressStart: secondaryLongPressStart,
        onSecondaryLongPressMoveUpdate: secondaryLongPressMoveUpdate,
        onSecondaryLongPressUp: secondaryLongPressUp,
        onSecondaryLongPressEnd: secondaryLongPressEnd,
        onVerticalDragDown: verticalDragDown,
        onVerticalDragStart: verticalDragStart,
        onVerticalDragUpdate: verticalDragUpdate,
        onVerticalDragEnd: verticalDragEnd,
        onVerticalDragCancel: verticalDragCancel,
        onHorizontalDragDown: horizontalDragDown,
        onHorizontalDragStart: horizontalDragStart,
        onHorizontalDragUpdate: horizontalDragUpdate,
        onHorizontalDragEnd: horizontalDragEnd,
        onHorizontalDragCancel: horizontalDragCancel,
        onForcePressStart: forcePressStart,
        onForcePressPeak: forcePressPeak,
        onForcePressUpdate: forcePressUpdate,
        onForcePressEnd: forcePressEnd,
        onPanDown: panDown,
        onPanStart: panStart,
        onPanUpdate: panUpdate,
        onPanEnd: panEnd,
        onPanCancel: panCancel,
        onScaleStart: scaleStart,
        onScaleUpdate: scaleUpdate,
        onScaleEnd: scaleEnd,
        child: w,
      ),
    );