CaptureGestures.scroll constructor

const CaptureGestures.scroll({
  1. Key? key,
  2. Widget? child,
  3. bool capturing = true,
  4. bool display = false,
})

Captures only drag gestures (preventing both vertical and horizontal scroll).

Implementation

const CaptureGestures.scroll({
  Key? key,
  this.child,
  bool capturing = true,
  this.display = false,
})  : capturingTap = false,
      capturingDoubleTap = false,
      capturingLongPress = false,
      capturingVerticalDrag = capturing,
      capturingHorizontalDrag = capturing,
      capturingForcePress = false,
      super(key: key);