SwipeOption class
Parameters for a FitSwipeable.
Constructors
- SwipeOption({required dynamic onSwiped(), required DismissDirection dismissDirection, Widget? background, bool dismiss = false})
-
Creates a new SwipeOption.
const
- SwipeOption.add({required dynamic onSwiped(), DismissDirection dismissDirection = DismissDirection.endToStart, required Widget? background, bool dismiss = false})
-
Creates a new SwipeOption with presets to add an item when swiping.
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.
const
Properties
- background → Widget?
-
Background of the dismissible.
final
- dismiss → bool
-
If
true
, the swipeable item will disapear when swiped.final - dismissDirection → DismissDirection
-
Swipe direction.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onSwiped → dynamic Function()
-
Execute when an item is swiped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited