SwipeAction constructor

const SwipeAction({
  1. required dynamic onTap(
    1. CompletionHandler
    ),
  2. String? title,
  3. TextStyle style = const TextStyle(fontSize: 18, color: Colors.white),
  4. Color color = Colors.red,
  5. Widget? icon,
  6. bool closeOnTap = true,
  7. double backgroundRadius = 0.0,
  8. bool forceAlignmentToBoundary = false,
  9. double widthSpace = 80,
  10. SwipeNestedAction? nestedAction,
  11. Widget? content,
  12. bool performsFirstActionWithFullSwipe = false,
})

Implementation

const SwipeAction({
  required this.onTap,
  this.title,
  this.style = const TextStyle(fontSize: 18, color: Colors.white),
  this.color = Colors.red,
  this.icon,
  this.closeOnTap = true,
  this.backgroundRadius = 0.0,
  this.forceAlignmentToBoundary = false,
  this.widthSpace = 80,
  this.nestedAction,
  this.content,
  this.performsFirstActionWithFullSwipe = false,
});