SwipePlus constructor
const
SwipePlus({
- Key? key,
- required Widget child,
- VoidCallback? onDragComplete,
- VoidCallback? onDragCancel,
- Alignment alignment = Alignment.centerRight,
- Duration reverseDuration = _kReverseDuration,
- double maxTranslation = _kMaxTranslation,
- double minThreshold = _kMinDragThreshold,
- DragDirection dragDirection = DragDirection.LTR,
Implementation
const SwipePlus({
super.key,
required this.child,
this.onDragComplete,
this.onDragCancel,
this.alignment = Alignment.centerRight,
this.reverseDuration = _kReverseDuration,
this.maxTranslation = _kMaxTranslation,
this.minThreshold = _kMinDragThreshold,
this.dragDirection = DragDirection.LTR,
}) : assert(maxTranslation != 0);