SwipeCard constructor

const SwipeCard({
  1. Key? key,
  2. required int index,
  3. required Set<int> removedCards,
  4. required Map<int, double> swipeProgress,
  5. required Widget customWidget,
  6. required VoidCallback onDismissed,
  7. required ValueChanged<double> onSwipeUpdate,
  8. required double cardWidth,
  9. double cardSpacing = 16,
  10. Duration animationDuration = const Duration(milliseconds: 180),
  11. Curve animationCurve = Curves.fastOutSlowIn,
  12. CardSwipeTransforms? customTransformCallback(
    1. int cardIndex,
    2. CardSwipeTransforms baseTransforms,
    3. double swipeProgress,
    4. List<int> removedCards,
    5. double cardWidth,
    6. double cardSpacing,
    )?,
})

Implementation

const SwipeCard({
  super.key,
  required this.index,
  required this.removedCards,
  required this.swipeProgress,
  required this.customWidget,
  required this.onDismissed,
  required this.onSwipeUpdate,
  required this.cardWidth,
  this.cardSpacing = 16,
  this.animationDuration = const Duration(milliseconds: 180),
  this.animationCurve = Curves.fastOutSlowIn,
  this.customTransformCallback,
});