XGestureDetector constructor
XGestureDetector({
- required Widget child,
- TapEventListener? onTap,
- MoveEventListener? onMoveUpdate,
- MoveEventListener? onMoveEnd,
- MoveEventListener? onMoveStart,
- void onScaleStart(
- Offset initialFocusPoint
- ScaleEventListener? onScaleUpdate,
- void onScaleEnd()?,
- TapEventListener? onDoubleTap,
- dynamic onScrollEvent(
- ScrollEvent event
- bool bypassMoveEventAfterLongPress = true,
- bool bypassTapEventOnDoubleTap = false,
- int doubleTapTimeConsider = 250,
- int longPressTimeConsider = 350,
- TapEventListener? onLongPress,
- MoveEventListener? onLongPressMove,
- dynamic onLongPressEnd()?,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- int longPressMaximumRangeAllowed = 25,
Creates a widget that detects gestures.
Implementation
XGestureDetector(
{required this.child,
this.onTap,
this.onMoveUpdate,
this.onMoveEnd,
this.onMoveStart,
this.onScaleStart,
this.onScaleUpdate,
this.onScaleEnd,
this.onDoubleTap,
this.onScrollEvent,
this.bypassMoveEventAfterLongPress = true,
this.bypassTapEventOnDoubleTap = false,
this.doubleTapTimeConsider = 250,
this.longPressTimeConsider = 350,
this.onLongPress,
this.onLongPressMove,
this.onLongPressEnd,
this.behavior = HitTestBehavior.deferToChild,
this.longPressMaximumRangeAllowed = 25});