SwipeableWidget constructor
SwipeableWidget({
- Key? key,
- required Widget child,
- required double height,
- required VoidCallback onSwipeCallback,
- required SwipeValueCallBack onSwipeValueCallback,
- required bool isActive,
- 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);