SwipeableWidget constructor

SwipeableWidget({
  1. Key? key,
  2. required Widget child,
  3. required double height,
  4. required VoidCallback onSwipeCallback,
  5. required dynamic onSwipeStartcallback(
    1. bool,
    2. double
    ),
  6. required double screenSize,
  7. double? swipePercentageNeeded = 0.75,
})

Implementation

SwipeableWidget(
    {Key? key,
    required this.child,
    required this.height,
    required this.onSwipeCallback,
    required this.onSwipeStartcallback,
    required this.screenSize,
    this.swipePercentageNeeded = 0.75})
    : assert(child != null &&
          onSwipeCallback != null &&
          swipePercentageNeeded! <= 1.0),
      super(key: key);