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. bool addAutomaticKeepAlives = true,
  12. bool addRepaintBoundaries = true,
  13. bool addSemanticIndexes = true,
  14. double? cacheExtent,
  15. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  16. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  17. String? restorationId,
  18. Clip clipBehavior = Clip.hardEdge,
  19. Key? key,
})

Implementation

const PagedListView({
  required this.pagingController,
  required this.builderDelegate,
  // Corresponds to [ScrollView.controller].
  ScrollController? scrollController,
  // Corresponds to [ScrollView.scrollDirection].
  Axis scrollDirection = Axis.vertical,
  // Corresponds to [ScrollView.reverse].
  bool reverse = false,
  // Corresponds to [ScrollView.primary].
  bool? primary,
  // Corresponds to [ScrollView.physics].
  ScrollPhysics? physics,
  // Corresponds to [ScrollView.shrinkWrap].
  bool shrinkWrap = false,
  // Corresponds to [BoxScrollView.padding].
  EdgeInsetsGeometry? padding,
  this.itemExtent,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  // Corresponds to [ScrollView.cacheExtent]
  double? cacheExtent,
  // Corresponds to [ScrollView.dragStartBehavior]
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  // Corresponds to [ScrollView.keyboardDismissBehavior]
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  // Corresponds to [ScrollView.restorationId]
  String? restorationId,
  // Corresponds to [ScrollView.clipBehavior]
  Clip clipBehavior = Clip.hardEdge,
  Key? key,
})  : _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,
      );