ZeroListTileAction constructor

const ZeroListTileAction({
  1. Key? key,
  2. bool autoClose = _kAutoClose,
  3. int flex = _kFlex,
  4. IconData? icon,
  5. Color backgroundColor = _kBackgroundColor,
  6. BorderRadius borderRadius = BorderRadius.zero,
  7. Color? foregroundColor,
  8. required String? label,
  9. SlidableActionCallback? onPressed,
  10. EdgeInsets? padding,
  11. double spacing = 4,
})

Creates a ZeroListTileAction.

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 ZeroListTileAction({
  super.key,
  super.autoClose,
  super.flex,
  super.icon,
  super.backgroundColor,
  super.borderRadius,
  super.foregroundColor,
  required super.label,
  super.onPressed,
  super.padding,
  super.spacing,
});