CardStackWidget.builder constructor
CardStackWidget.builder({
- required int count,
- required CardStackWidgetBuilder builder,
- 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 with a specified length, via the count
parameter.
To render the item, is used the builder
property.
Implementation
CardStackWidget.builder({
required int count,
required CardStackWidgetBuilder builder,
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,
cardList = _getCardListFromBuilder(builder, count);