JsonGestureDetector constructor

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

Implementation

JsonGestureDetector({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.behavior,
  this.dragStartBehavior = DragStartBehavior.start,
  this.excludeFromSemantics = false,
  this.onDoubleTap,
  this.onDoubleTapCancel,
  this.onDoubleTapDown,
  this.onForcePressEnd,
  this.onForcePressPeak,
  this.onForcePressStart,
  this.onForcePressUpdate,
  this.onHorizontalDragCancel,
  this.onHorizontalDragDown,
  this.onHorizontalDragEnd,
  this.onHorizontalDragStart,
  this.onHorizontalDragUpdate,
  this.onLongPress,
  this.onLongPressCancel,
  this.onLongPressDown,
  this.onLongPressEnd,
  this.onLongPressMoveUpdate,
  this.onLongPressStart,
  this.onLongPressUp,
  this.onPanCancel,
  this.onPanDown,
  this.onPanEnd,
  this.onPanStart,
  this.onPanUpdate,
  this.onScaleEnd,
  this.onScaleStart,
  this.onScaleUpdate,
  this.onSecondaryLongPress,
  this.onSecondaryLongPressCancel,
  this.onSecondaryLongPressDown,
  this.onSecondaryLongPressEnd,
  this.onSecondaryLongPressMoveUpdate,
  this.onSecondaryLongPressStart,
  this.onSecondaryLongPressUp,
  this.onSecondaryTap,
  this.onSecondaryTapCancel,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onTap,
  this.onTapCancel,
  this.onTapDown,
  this.onTapUp,
  this.onTertiaryLongPress,
  this.onTertiaryLongPressCancel,
  this.onTertiaryLongPressDown,
  this.onTertiaryLongPressEnd,
  this.onTertiaryLongPressMoveUpdate,
  this.onTertiaryLongPressStart,
  this.onTertiaryLongPressUp,
  this.onTertiaryTapCancel,
  this.onTertiaryTapDown,
  this.onTertiaryTapUp,
  this.onVerticalDragCancel,
  this.onVerticalDragDown,
  this.onVerticalDragEnd,
  this.onVerticalDragStart,
  this.onVerticalDragUpdate,
  this.supportedDevices,
  this.trackpadScrollCausesScale = false,
  this.trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
  this.child,
}) : super(
        jsonWidgetArgs: JsonGestureDetectorBuilderModel.fromDynamic(
          {
            'behavior': behavior,
            'dragStartBehavior': dragStartBehavior,
            'excludeFromSemantics': excludeFromSemantics,
            'onDoubleTap': onDoubleTap,
            'onDoubleTapCancel': onDoubleTapCancel,
            'onDoubleTapDown': onDoubleTapDown,
            'onForcePressEnd': onForcePressEnd,
            'onForcePressPeak': onForcePressPeak,
            'onForcePressStart': onForcePressStart,
            'onForcePressUpdate': onForcePressUpdate,
            'onHorizontalDragCancel': onHorizontalDragCancel,
            'onHorizontalDragDown': onHorizontalDragDown,
            'onHorizontalDragEnd': onHorizontalDragEnd,
            'onHorizontalDragStart': onHorizontalDragStart,
            'onHorizontalDragUpdate': onHorizontalDragUpdate,
            '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,
            'onSecondaryLongPress': onSecondaryLongPress,
            'onSecondaryLongPressCancel': onSecondaryLongPressCancel,
            'onSecondaryLongPressDown': onSecondaryLongPressDown,
            'onSecondaryLongPressEnd': onSecondaryLongPressEnd,
            'onSecondaryLongPressMoveUpdate': onSecondaryLongPressMoveUpdate,
            'onSecondaryLongPressStart': onSecondaryLongPressStart,
            'onSecondaryLongPressUp': onSecondaryLongPressUp,
            'onSecondaryTap': onSecondaryTap,
            'onSecondaryTapCancel': onSecondaryTapCancel,
            'onSecondaryTapDown': onSecondaryTapDown,
            'onSecondaryTapUp': onSecondaryTapUp,
            'onTap': onTap,
            'onTapCancel': onTapCancel,
            'onTapDown': onTapDown,
            'onTapUp': onTapUp,
            'onTertiaryLongPress': onTertiaryLongPress,
            'onTertiaryLongPressCancel': onTertiaryLongPressCancel,
            'onTertiaryLongPressDown': onTertiaryLongPressDown,
            'onTertiaryLongPressEnd': onTertiaryLongPressEnd,
            'onTertiaryLongPressMoveUpdate': onTertiaryLongPressMoveUpdate,
            'onTertiaryLongPressStart': onTertiaryLongPressStart,
            'onTertiaryLongPressUp': onTertiaryLongPressUp,
            'onTertiaryTapCancel': onTertiaryTapCancel,
            'onTertiaryTapDown': onTertiaryTapDown,
            'onTertiaryTapUp': onTertiaryTapUp,
            'onVerticalDragCancel': onVerticalDragCancel,
            'onVerticalDragDown': onVerticalDragDown,
            'onVerticalDragEnd': onVerticalDragEnd,
            'onVerticalDragStart': onVerticalDragStart,
            'onVerticalDragUpdate': onVerticalDragUpdate,
            'supportedDevices': supportedDevices,
            'trackpadScrollCausesScale': trackpadScrollCausesScale,
            'trackpadScrollToScaleFactor': trackpadScrollToScaleFactor,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonGestureDetectorBuilder(
          args: JsonGestureDetectorBuilderModel.fromDynamic(
            {
              'behavior': behavior,
              'dragStartBehavior': dragStartBehavior,
              'excludeFromSemantics': excludeFromSemantics,
              'onDoubleTap': onDoubleTap,
              'onDoubleTapCancel': onDoubleTapCancel,
              'onDoubleTapDown': onDoubleTapDown,
              'onForcePressEnd': onForcePressEnd,
              'onForcePressPeak': onForcePressPeak,
              'onForcePressStart': onForcePressStart,
              'onForcePressUpdate': onForcePressUpdate,
              'onHorizontalDragCancel': onHorizontalDragCancel,
              'onHorizontalDragDown': onHorizontalDragDown,
              'onHorizontalDragEnd': onHorizontalDragEnd,
              'onHorizontalDragStart': onHorizontalDragStart,
              'onHorizontalDragUpdate': onHorizontalDragUpdate,
              '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,
              'onSecondaryLongPress': onSecondaryLongPress,
              'onSecondaryLongPressCancel': onSecondaryLongPressCancel,
              'onSecondaryLongPressDown': onSecondaryLongPressDown,
              'onSecondaryLongPressEnd': onSecondaryLongPressEnd,
              'onSecondaryLongPressMoveUpdate':
                  onSecondaryLongPressMoveUpdate,
              'onSecondaryLongPressStart': onSecondaryLongPressStart,
              'onSecondaryLongPressUp': onSecondaryLongPressUp,
              'onSecondaryTap': onSecondaryTap,
              'onSecondaryTapCancel': onSecondaryTapCancel,
              'onSecondaryTapDown': onSecondaryTapDown,
              'onSecondaryTapUp': onSecondaryTapUp,
              'onTap': onTap,
              'onTapCancel': onTapCancel,
              'onTapDown': onTapDown,
              'onTapUp': onTapUp,
              'onTertiaryLongPress': onTertiaryLongPress,
              'onTertiaryLongPressCancel': onTertiaryLongPressCancel,
              'onTertiaryLongPressDown': onTertiaryLongPressDown,
              'onTertiaryLongPressEnd': onTertiaryLongPressEnd,
              'onTertiaryLongPressMoveUpdate': onTertiaryLongPressMoveUpdate,
              'onTertiaryLongPressStart': onTertiaryLongPressStart,
              'onTertiaryLongPressUp': onTertiaryLongPressUp,
              'onTertiaryTapCancel': onTertiaryTapCancel,
              'onTertiaryTapDown': onTertiaryTapDown,
              'onTertiaryTapUp': onTertiaryTapUp,
              'onVerticalDragCancel': onVerticalDragCancel,
              'onVerticalDragDown': onVerticalDragDown,
              'onVerticalDragEnd': onVerticalDragEnd,
              'onVerticalDragStart': onVerticalDragStart,
              'onVerticalDragUpdate': onVerticalDragUpdate,
              'supportedDevices': supportedDevices,
              'trackpadScrollCausesScale': trackpadScrollCausesScale,
              'trackpadScrollToScaleFactor': trackpadScrollToScaleFactor,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonGestureDetectorBuilder.kType,
      );