ExpandablePageView constructor
ExpandablePageView({
- required List<
Widget> children, - PageController? controller,
- ValueChanged<
int> ? onPageChanged, - bool reverse = false,
- Duration animationDuration = const Duration(milliseconds: 100),
- Curve animationCurve = Curves.easeInOutCubic,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool allowImplicitScrolling = false,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- bool animateFirstPage = false,
- double estimatedPageSize = 0.0,
- Alignment alignment = Alignment.topCenter,
- ScrollBehavior? scrollBehavior,
- Axis scrollDirection = Axis.horizontal,
- bool padEnds = true,
- 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);