SwipeableWidget constructor

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

Implementation

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