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,
Creates a SimpleGestureDetector widget.
Implementation
const SimpleGestureDetector({
Key? key,
required this.child,
this.swipeConfig = const SimpleSwipeConfig(),
this.behavior = HitTestBehavior.deferToChild,
this.onVerticalSwipe,
this.onHorizontalSwipe,
this.onTap,
this.onDoubleTap,
this.onLongPress,
}) : super(key: key);