Swipe constructor
Swipe({
- required Widget child,
- dynamic onSwipeUp()?,
- dynamic onSwipeDown()?,
- dynamic onSwipeLeft()?,
- dynamic onSwipeRight()?,
- double verticalMaxWidthThreshold = 50,
- double verticalMinDisplacement = 100,
- double verticalMinVelocity = 300,
- double horizontalMaxHeightThreshold = 50,
- double horizontalMinDisplacement = 100,
- double horizontalMinVelocity = 300,
Implementation
Swipe({
required this.child,
this.onSwipeUp,
this.onSwipeDown,
this.onSwipeLeft,
this.onSwipeRight,
this.verticalMaxWidthThreshold = 50,
this.verticalMinDisplacement = 100,
this.verticalMinVelocity = 300,
this.horizontalMaxHeightThreshold = 50,
this.horizontalMinDisplacement = 100,
this.horizontalMinVelocity = 300,
});