DismissiblePane constructor
const
DismissiblePane({
- Key? key,
- required VoidCallback onDismissed,
- double dismissThreshold = _kDismissThreshold,
- Duration dismissalDuration = _kDismissalDuration,
- Duration resizeDuration = _kResizeDuration,
- ConfirmDismissCallback? confirmDismiss,
- bool closeOnCancel = false,
- 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);