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