ActionPane constructor
const
ActionPane({})
Creates an ActionPane.
The extentRatio
argument must not be null and must be between 0
(exclusive) and 1 (inclusive).
The openThreshold
argument must be null or between 0 and 1
(both exclusives).
The closeThreshold
argument must be null or between 0 and 1
(both exclusives).
The children
argument must not be null.
Implementation
const ActionPane({
Key? key,
this.extentRatio = _defaultExtentRatio,
required this.motion,
this.dismissible,
this.dragDismissible = true,
this.openThreshold,
this.closeThreshold,
required this.children,
}) : assert(extentRatio > 0 && extentRatio <= 1),
assert(
openThreshold == null || (openThreshold > 0 && openThreshold < 1)),
assert(closeThreshold == null ||
(closeThreshold > 0 && closeThreshold < 1)),
super(key: key);