DismissiblePane constructor

const DismissiblePane({
  1. Key? key,
  2. required VoidCallback onDismissed,
  3. double dismissThreshold = _kDismissThreshold,
  4. Duration dismissalDuration = _kDismissalDuration,
  5. Duration resizeDuration = _kResizeDuration,
  6. ConfirmDismissCallback? confirmDismiss,
  7. bool closeOnCancel = false,
  8. Widget motion = const InversedDrawerMotion(),
})

Creates a DismissiblePane.

The onDismissed, dismissThreshold, dismissalDuration, resizeDuration, closeOnCancel, and motion arguments must not be null.

The dismissThreshold must be between 0 and 1 (both exclusives).

You must set the key of the enclosing Slidable to use this widget.

Implementation

const DismissiblePane({
  Key? key,
  required this.onDismissed,
  this.dismissThreshold = _kDismissThreshold,
  this.dismissalDuration = _kDismissalDuration,
  this.resizeDuration = _kResizeDuration,
  this.confirmDismiss,
  this.closeOnCancel = false,
  this.motion = const InversedDrawerMotion(),
})  : assert(dismissThreshold > 0 && dismissThreshold < 1),
      super(key: key);