XGestureDetector constructor

XGestureDetector({
  1. required Widget child,
  2. TapEventListener? onTap,
  3. MoveEventListener? onMoveUpdate,
  4. MoveEventListener? onMoveEnd,
  5. MoveEventListener? onMoveStart,
  6. void onScaleStart(
    1. Offset initialFocusPoint
    )?,
  7. ScaleEventListener? onScaleUpdate,
  8. void onScaleEnd()?,
  9. TapEventListener? onDoubleTap,
  10. dynamic onScrollEvent(
    1. ScrollEvent event
    )?,
  11. bool bypassMoveEventAfterLongPress = true,
  12. bool bypassTapEventOnDoubleTap = false,
  13. int doubleTapTimeConsider = 250,
  14. int longPressTimeConsider = 350,
  15. TapEventListener? onLongPress,
  16. MoveEventListener? onLongPressMove,
  17. dynamic onLongPressEnd()?,
  18. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  19. 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});