SwipeActionCell constructor
const
SwipeActionCell({
- required Key key,
- required Widget child,
- List<
SwipeAction> ? trailingActions, - List<
SwipeAction> ? leadingActions, - bool isDraggable = true,
- bool closeWhenScrolling = true,
- bool firstActionWillCoverAllSpaceOnDeleting = true,
- SwipeActionController? controller,
- int? index,
- Widget selectedIndicator = const Icon(Icons.add_circle, color: Colors.blue),
- Widget unselectedIndicator = const Icon(Icons.do_not_disturb_on, color: Colors.red),
- Color? backgroundColor,
- double editModeOffset = 60,
- double fullSwipeFactor = 0.75,
- int deleteAnimationDuration = 400,
- int normalAnimationDuration = 400,
- 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);