SwipePlus constructor

const SwipePlus({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onDragComplete,
  4. VoidCallback? onDragCancel,
  5. Alignment alignment = Alignment.centerRight,
  6. Duration reverseDuration = _kReverseDuration,
  7. double maxTranslation = _kMaxTranslation,
  8. double minThreshold = _kMinDragThreshold,
  9. 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);