CardSwipeStack constructor

const CardSwipeStack({
  1. Key? key,
  2. required Widget itemBuilder(
    1. BuildContext context,
    2. int index
    ),
  3. required int itemCount,
  4. void onCardSwipe(
    1. int cardIndex
    )?,
  5. void onCardUpdate(
    1. int cardIndex,
    2. double progress
    )?,
  6. required double cardWidth,
  7. double cardSpacing = 16,
  8. Duration cardAnimationDuration = const Duration(milliseconds: 180),
  9. Curve cardAnimationCurve = Curves.fastOutSlowIn,
  10. CardSwipeTransforms? customTransformCallback(
    1. int cardIndex,
    2. CardSwipeTransforms baseTransforms,
    3. double swipeProgress,
    4. List<int> removedCards,
    5. double cardWidth,
    6. double cardSpacing,
    )?,
})

Implementation

const CardSwipeStack({
  super.key,
  required this.itemBuilder,
  required this.itemCount,
  this.onCardSwipe,
  this.onCardUpdate,
  required this.cardWidth,
  this.cardSpacing = 16,
  this.cardAnimationDuration = const Duration(milliseconds: 180),
  this.cardAnimationCurve = Curves.fastOutSlowIn,
  this.customTransformCallback,
});