CustomSlidableAction constructor
const
CustomSlidableAction({
- Key? key,
- int flex = _kFlex,
- Color backgroundColor = _kBackgroundColor,
- Color? foregroundColor,
- bool autoClose = _kAutoClose,
- BorderRadius borderRadius = BorderRadius.zero,
- EdgeInsets? padding,
- required SlidableActionCallback? onPressed,
- required Widget child,
Creates a CustomSlidableAction.
The flex
, backgroundColor
, autoClose
and child
arguments must not
be null.
The flex
argument must also be greater than 0.
Implementation
const CustomSlidableAction({
Key? key,
this.flex = _kFlex,
this.backgroundColor = _kBackgroundColor,
this.foregroundColor,
this.autoClose = _kAutoClose,
this.borderRadius = BorderRadius.zero,
this.padding,
required this.onPressed,
required this.child,
}) : assert(flex > 0),
super(key: key);