PagedListView<PageKeyType, ItemType> constructor

const PagedListView<PageKeyType, ItemType>({
  1. required PagingState<PageKeyType, ItemType> state,
  2. required NextPageCallback fetchNextPage,
  3. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  4. ScrollController? scrollController,
  5. Axis scrollDirection = Axis.vertical,
  6. bool reverse = false,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool shrinkWrap = false,
  10. EdgeInsetsGeometry? padding,
  11. double? itemExtent,
  12. Widget? prototypeItem,
  13. bool addAutomaticKeepAlives = true,
  14. bool addRepaintBoundaries = true,
  15. bool addSemanticIndexes = true,
  16. double? cacheExtent,
  17. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  18. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  19. String? restorationId,
  20. Clip clipBehavior = Clip.hardEdge,
  21. Key? key,
})

Implementation

const PagedListView({
  required this.state,
  required this.fetchNextPage,
  required this.builderDelegate,
  // Matches [ScrollView.controller].
  ScrollController? scrollController,
  // Matches [ScrollView.scrollDirection].
  super.scrollDirection,
  // Matches [ScrollView.reverse].
  super.reverse,
  // Matches [ScrollView.primary].
  super.primary,
  // Matches [ScrollView.physics].
  super.physics,
  // Matches [ScrollView.shrinkWrap].
  super.shrinkWrap,
  // Matches [BoxScrollView.padding].
  super.padding,
  this.itemExtent,
  this.prototypeItem,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  // Matches [ScrollView.cacheExtent]
  super.cacheExtent,
  // Matches [ScrollView.dragStartBehavior]
  super.dragStartBehavior,
  // Matches [ScrollView.keyboardDismissBehavior]
  super.keyboardDismissBehavior,
  // Matches [ScrollView.restorationId]
  super.restorationId,
  // Matches [ScrollView.clipBehavior]
  super.clipBehavior,
  super.key,
})  : assert(
        itemExtent == null || prototypeItem == null,
        'You can only pass itemExtent or prototypeItem, not both',
      ),
      _separatorBuilder = null,
      _shrinkWrapFirstPageIndicators = shrinkWrap,
      super(
        controller: scrollController,
      );