SwipeOption.delete constructor

const SwipeOption.delete({
  1. required dynamic onSwiped(),
  2. DismissDirection dismissDirection = DismissDirection.startToEnd,
  3. required Widget? background,
  4. 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});