ExpandablePageView.builder constructor

ExpandablePageView.builder({
  1. required int itemCount,
  2. required WidgetBuilder itemBuilder,
  3. PageController? controller,
  4. ValueChanged<int>? onPageChanged,
  5. bool reverse = false,
  6. Duration animationDuration = const Duration(milliseconds: 100),
  7. Curve animationCurve = Curves.easeInOutCubic,
  8. ScrollPhysics? physics,
  9. bool pageSnapping = true,
  10. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  11. bool allowImplicitScrolling = false,
  12. String? restorationId,
  13. Clip clipBehavior = Clip.hardEdge,
  14. bool animateFirstPage = false,
  15. double estimatedPageSize = 0.0,
  16. Alignment alignment = Alignment.topCenter,
  17. ScrollBehavior? scrollBehavior,
  18. Axis scrollDirection = Axis.horizontal,
  19. bool padEnds = true,
  20. Key? key,
})

Implementation

ExpandablePageView.builder({
  required int itemCount,
  required WidgetBuilder itemBuilder,
  this.controller,
  this.onPageChanged,
  this.reverse = false,
  this.animationDuration = const Duration(milliseconds: 100),
  this.animationCurve = Curves.easeInOutCubic,
  this.physics,
  this.pageSnapping = true,
  this.dragStartBehavior = DragStartBehavior.start,
  this.allowImplicitScrolling = false,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.animateFirstPage = false,
  this.estimatedPageSize = 0.0,
  this.alignment = Alignment.topCenter,
  this.scrollBehavior,
  this.scrollDirection = Axis.horizontal,
  this.padEnds = true,
  Key? key,
})  : assert(estimatedPageSize >= 0.0),
      children = null,
      itemCount = itemCount,
      itemBuilder = itemBuilder,
      super(key: key);