CubePageView.builder constructor

const CubePageView.builder({
  1. Key? key,
  2. required int? itemCount,
  3. required CubeWidgetBuilder? itemBuilder,
  4. ValueChanged<int>? onPageChanged,
  5. PageController? controller,
  6. Axis scrollDirection = Axis.horizontal,
  7. int startPage = 0,
  8. 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);