FlutterSlidableAction constructor
- {required SlidableActionCallback? onPressed,
- int flex = _kFlex,
- Color backgroundColor = _kBackgroundColor,
- Color? foregroundColor,
- bool autoClose = _kAutoClose,
- IconData? icon,
- double spacing = 4,
- String? label,
- BorderRadius borderRadius = BorderRadius.zero,
- EdgeInsets? padding,
- TextOverflow? textOverflow,
- Key? key}
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 FlutterSlidableAction