SimpleGestureDetector constructor
const
SimpleGestureDetector({
- Key? key,
- required Widget child,
- SimpleSwipeConfig swipeConfig = const SimpleSwipeConfig(),
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- SwipeCallback? onVerticalSwipe,
- SwipeCallback? onHorizontalSwipe,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- 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,
});