CardSwipeCompleteCallback typedef Null safety

CardSwipeCompleteCallback = void Function(CardSwipeOrientation orientation, int index)

swipe card to CardSwipeOrientation.left or CardSwipeOrientation.right , CardSwipeOrientation.recover means back to start.

Implementation

typedef CardSwipeCompleteCallback = void Function(
    CardSwipeOrientation orientation, int index);