FlutterSlidableAction constructor

const FlutterSlidableAction(
  1. {required SlidableActionCallback? onPressed,
  2. int flex = _kFlex,
  3. Color backgroundColor = _kBackgroundColor,
  4. Color? foregroundColor,
  5. bool autoClose = _kAutoClose,
  6. IconData? icon,
  7. double spacing = 4,
  8. String? label,
  9. BorderRadius borderRadius = BorderRadius.zero,
  10. EdgeInsets? padding,
  11. TextOverflow? textOverflow,
  12. 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