SwipeOption.delete constructor
const
SwipeOption.delete({
- required dynamic onSwiped(),
- DismissDirection dismissDirection = DismissDirection.startToEnd,
- required Widget? background,
- bool dismiss = true,
Creates a new SwipeOption with presets to remove an item when swiping.
Implementation
const SwipeOption.delete(
{required this.onSwiped,
this.dismissDirection = DismissDirection.startToEnd,
required this.background,
this.dismiss = true});