ExpandablePageView constructor

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

Implementation

ExpandablePageView({
  required List<Widget> children,
  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 = children,
      itemBuilder = null,
      itemCount = null,
      super(key: key);