Swipable constructor

Swipable({
  1. Key? key,
  2. @required Widget? child,
  3. void onSwipeRight(
    1. Offset finalPosition
    )?,
  4. void onSwipeLeft(
    1. Offset finalPosition
    )?,
  5. void onSwipeDown(
    1. Offset finalPosition
    )?,
  6. void onSwipeUp(
    1. Offset finalPosition
    )?,
  7. void onPositionChanged(
    1. DragUpdateDetails details
    )?,
  8. void onSwipeStart(
    1. DragStartDetails details
    )?,
  9. void onSwipeCancel(
    1. Offset position,
    2. DragEndDetails details
    )?,
  10. void onSwipeEnd(
    1. Offset position,
    2. DragEndDetails details
    )?,
  11. Stream<double>? swipe,
  12. int? animationDuration = 300,
  13. Curve? animationCurve = Curves.easeInOut,
  14. bool horizontalSwipe = true,
  15. bool verticalSwipe = true,
  16. double? threshold = 0.3,
})

Implementation

Swipable({
  Key? key,
  @required this.child,
  this.onSwipeRight,
  this.onSwipeLeft,
  this.onSwipeDown,
  this.onSwipeUp,
  this.onPositionChanged,
  this.onSwipeStart,
  this.onSwipeCancel,
  this.onSwipeEnd,
  this.swipe,
  this.animationDuration = 300,
  this.animationCurve = Curves.easeInOut,
  this.horizontalSwipe = true,
  this.verticalSwipe = true,
  this.threshold = 0.3,
}): super(key: key);