XSlidableAction constructor
const
XSlidableAction({
- Key? key,
- int flex = _kFlex,
- Color backgroundColor = _kBackgroundColor,
- Color? foregroundColor,
- bool autoClose = _kAutoClose,
- required SlidableActionCallback? onPressed,
- IconData? icon,
- double spacing = 4,
- String? label,
- BorderRadius borderRadius = BorderRadius.zero,
- EdgeInsets? padding,
- Uint8List? icon_Image,
Creates a SlidableAction
.
The flex
, backgroundColor
, autoClose
and spacing
arguments
must not be null.
You must set either an icon
or a label
.
The flex
argument must also be greater than 0.
Implementation
const XSlidableAction({
Key? key,
this.flex = _kFlex,
this.backgroundColor = _kBackgroundColor,
this.foregroundColor,
this.autoClose = _kAutoClose,
required this.onPressed,
this.icon,
this.spacing = 4,
this.label,
this.borderRadius = BorderRadius.zero,
this.padding,
this.icon_Image,
}) : assert(flex > 0),
assert(icon != null || label != null),
super(key: key);