CollapsableCardStacker constructor

const CollapsableCardStacker({
  1. Key? key,
  2. required List<Widget> cards,
  3. int initialPageIndex = 0,
  4. double cardWidth = 300,
  5. double cardHeight = 300,
  6. double initialOffset = 40.0,
  7. double spaceBetweenItems = 400,
  8. PageController? pageController,
  9. Axis scrollDirection = Axis.vertical,
  10. ValueChanged<int>? onPageChanged,
  11. Duration animationDuration = const Duration(milliseconds: 600),
})

Implementation

const CollapsableCardStacker({
  Key? key,
  required this.cards,
  this.initialPageIndex = 0,
  this.cardWidth = 300,
  this.cardHeight = 300,
  this.initialOffset = 40.0,
  this.spaceBetweenItems = 400,
  this.pageController,
  this.scrollDirection = Axis.vertical,
  this.onPageChanged,
  this.animationDuration = const Duration(milliseconds: 600),
}) : super(key: key);