Swipe constructor

Swipe({
  1. required Widget child,
  2. dynamic onSwipeUp()?,
  3. dynamic onSwipeDown()?,
  4. dynamic onSwipeLeft()?,
  5. dynamic onSwipeRight()?,
  6. double verticalMaxWidthThreshold = 50,
  7. double verticalMinDisplacement = 100,
  8. double verticalMinVelocity = 300,
  9. double horizontalMaxHeightThreshold = 50,
  10. double horizontalMinDisplacement = 100,
  11. 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,
});