CardStackWidget constructor
const
CardStackWidget({
- required List<
CardModel> cardList, - Key? key,
- double? positionFactor,
- double? scaleFactor,
- CardOrientation? cardDismissOrientation,
- CardOrientation? swipeOrientation,
- Alignment? alignment,
- bool reverseOrder = false,
- dynamic onCardTap()?,
- bool opacityChangeOnDrag = false,
- bool animateCardScale = false,
- Duration? dismissedCardDuration,
Create a stack of card using the CardModel properties inside the
cardList
parameter.
Implementation
const CardStackWidget({
required this.cardList,
super.key,
double? positionFactor,
double? scaleFactor,
CardOrientation? cardDismissOrientation,
CardOrientation? swipeOrientation,
this.alignment,
this.reverseOrder = false,
this.onCardTap,
this.opacityChangeOnDrag = false,
this.animateCardScale = false,
this.dismissedCardDuration,
}) : scaleFactor = scaleFactor ?? scaleFactorDefault,
positionFactor = positionFactor ?? positionFactorDefault,
cardDismissOrientation = cardDismissOrientation ?? CardOrientation.both,
swipeOrientation = swipeOrientation ?? CardOrientation.both;