onUndo property

CardSwiperOnUndo? onUndo
final

Callback function that is called when a card is unswiped.

The function is called with the oldIndex, the currentIndex and the direction of the previous swipe. If the function returns false, the undo action is canceled and the current card remains on top of the stack. If the function returns true, the undo action is performed as expected.

Implementation

final CardSwiperOnUndo? onUndo;