ActionPane constructor

const ActionPane({
  1. Key? key,
  2. double extentRatio = _defaultExtentRatio,
  3. required Widget motion,
  4. Widget? dismissible,
  5. bool dragDismissible = true,
  6. double? openThreshold,
  7. double? closeThreshold,
  8. required List<Widget> children,
})

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);