PreloadPageView.custom constructor

PreloadPageView.custom({
  1. Key? key,
  2. Axis scrollDirection = Axis.horizontal,
  3. bool reverse = false,
  4. PreloadPageController? controller,
  5. ScrollPhysics? physics,
  6. bool pageSnapping = true,
  7. Function? onLoadMore,
  8. ValueChanged<int>? onPageChanged,
  9. required SliverChildDelegate childrenDelegate,
  10. int preloadPagesCount = 1,
  11. double scrollSpeed = 0.6,
})

Creates a scrollable list that works page by page with a custom child model.

Implementation

PreloadPageView.custom({
  Key? key,
  this.scrollDirection = Axis.horizontal,
  this.reverse = false,
  PreloadPageController? controller,
  this.physics,
  this.pageSnapping = true,
  this.onLoadMore,
  this.onPageChanged,
  required this.childrenDelegate,
  this.preloadPagesCount = 1,
  this.scrollSpeed = 0.6
})
    : controller = controller ?? _defaultPageController,
      super(key: key);