PagedListView<PageKeyType, ItemType> constructor

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

Implementation

const PagedListView({
  required this.pagingController,
  required this.builderDelegate,
  // Matches [ScrollView.controller].
  ScrollController? scrollController,
  // Matches [ScrollView.scrollDirection].
  Axis scrollDirection = Axis.vertical,
  // Matches [ScrollView.reverse].
  bool reverse = false,
  // Matches [ScrollView.primary].
  bool? primary,
  // Matches [ScrollView.physics].
  ScrollPhysics? physics,
  // Matches [ScrollView.shrinkWrap].
  bool shrinkWrap = false,
  // Matches [BoxScrollView.padding].
  EdgeInsetsGeometry? padding,
  this.itemExtent,
  this.prototypeItem,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  // Matches [ScrollView.cacheExtent]
  double? cacheExtent,
  // Matches [ScrollView.dragStartBehavior]
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  // Matches [ScrollView.keyboardDismissBehavior]
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  // Matches [ScrollView.restorationId]
  String? restorationId,
  // Matches [ScrollView.clipBehavior]
  Clip clipBehavior = Clip.hardEdge,
  Key? key,
})  : assert(
        itemExtent == null || prototypeItem == null,
        'You can only pass itemExtent or prototypeItem, not both',
      ),
      _separatorBuilder = null,
      _shrinkWrapFirstPageIndicators = shrinkWrap,
      super(
        key: key,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: scrollController,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        padding: padding,
        cacheExtent: cacheExtent,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );