SwipeAction constructor
const
SwipeAction({
- required SwipeActionOnTapCallback onTap,
- String? title,
- TextStyle style = const TextStyle(fontSize: 18, color: Colors.white),
- Color color = Colors.red,
- Widget? icon,
- bool closeOnTap = true,
- double backgroundRadius = 0.0,
- bool forceAlignmentToBoundary = false,
- double widthSpace = 80,
- SwipeNestedAction? nestedAction,
- Widget? content,
- 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,
});