SwipeActionCell constructor

const SwipeActionCell({
  1. required Key key,
  2. required Widget child,
  3. List<SwipeAction>? trailingActions,
  4. List<SwipeAction>? leadingActions,
  5. bool isDraggable = true,
  6. bool closeWhenScrolling = true,
  7. bool firstActionWillCoverAllSpaceOnDeleting = true,
  8. SwipeActionController? controller,
  9. int? index,
  10. Widget selectedIndicator = const Icon(Icons.add_circle, color: Colors.blue),
  11. Widget unselectedIndicator = const Icon(Icons.do_not_disturb_on, color: Colors.red),
  12. Color? backgroundColor,
  13. double editModeOffset = 60,
  14. double fullSwipeFactor = 0.75,
  15. int deleteAnimationDuration = 400,
  16. int normalAnimationDuration = 400,
  17. Color? selectedForegroundColor,
})

Implementation

const SwipeActionCell(
    {required Key key,
    required this.child,
    this.trailingActions,
    this.leadingActions,
    this.isDraggable = true,
    this.closeWhenScrolling = true,
    this.firstActionWillCoverAllSpaceOnDeleting = true,
    this.controller,
    this.index,
    this.selectedIndicator = const Icon(
      Icons.add_circle,
      color: Colors.blue,
    ),
    this.unselectedIndicator = const Icon(
      Icons.do_not_disturb_on,
      color: Colors.red,
    ),
    this.backgroundColor,
    this.editModeOffset = 60,
    this.fullSwipeFactor = 0.75,
    this.deleteAnimationDuration = 400,
    this.normalAnimationDuration = 400,
    this.selectedForegroundColor})
    : super(key: key);