SimpleGestureDetector constructor

const SimpleGestureDetector({
  1. Key? key,
  2. required Widget child,
  3. SimpleSwipeConfig swipeConfig = const SimpleSwipeConfig(),
  4. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  5. SwipeCallback? onVerticalSwipe,
  6. SwipeCallback? onHorizontalSwipe,
  7. VoidCallback? onTap,
  8. VoidCallback? onDoubleTap,
  9. VoidCallback? onLongPress,
})

Implementation

const SimpleGestureDetector({
  super.key,
  required this.child,
  this.swipeConfig = const SimpleSwipeConfig(),
  this.behavior = HitTestBehavior.deferToChild,
  this.onVerticalSwipe,
  this.onHorizontalSwipe,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
});