CustomCustomSlidableAction constructor

const CustomCustomSlidableAction({
  1. Key? key,
  2. int flex = _kFlex,
  3. Color backgroundColor = _kBackgroundColor,
  4. Color? foregroundColor,
  5. bool autoClose = _kAutoClose,
  6. BorderRadius borderRadius = BorderRadius.zero,
  7. EdgeInsets? padding,
  8. Alignment? alignment,
  9. required CustomSlidableActionCallback? onPressed,
  10. required Widget child,
})

Creates a CustomCustomSlidableAction.

The flex, backgroundColor, autoClose and child arguments must not be null.

The flex argument must also be greater than 0.

Implementation

const CustomCustomSlidableAction({
  super.key,
  this.flex = _kFlex,
  this.backgroundColor = _kBackgroundColor,
  this.foregroundColor,
  this.autoClose = _kAutoClose,
  this.borderRadius = BorderRadius.zero,
  this.padding,
  this.alignment,
  required this.onPressed,
  required this.child,
}) : assert(flex > 0);