CubePageView.builder constructor
const
CubePageView.builder({
- Key? key,
- required int? itemCount,
- required CubeWidgetBuilder? itemBuilder,
- ValueChanged<
int> ? onPageChanged, - PageController? controller,
- Axis scrollDirection = Axis.horizontal,
- int startPage = 0,
- CubeTransformStyle transformStyle = CubeTransformStyle.outside,
Creates a scrollable list that works page by page using widgets that are created on demand.
This constructor is appropriate if you want to customize the behavior
Providing a non-null itemCount lets the CubePageView compute the maximum scroll extent.
itemBuilder will be called only with indices greater than or equal to zero and less than itemCount.
Implementation
const CubePageView.builder({
Key? key,
required this.itemCount,
required this.itemBuilder,
this.onPageChanged,
this.controller,
this.scrollDirection = Axis.horizontal,
this.startPage = 0,
this.transformStyle = CubeTransformStyle.outside,
}) : children = null,
assert(itemBuilder != null),
super(key: key);