PagingSilverBuilder<PageKeyType, ItemType> constructor

const PagingSilverBuilder<PageKeyType, ItemType>({
  1. Key? key,
  2. EdgeInsets padding = EdgeInsets.zero,
  3. Axis scrollDirection = Axis.vertical,
  4. bool reverse = false,
  5. ScrollController? controller,
  6. bool? primary,
  7. ScrollPhysics? physics,
  8. bool shrinkWrap = false,
  9. bool addRepaintBoundaries = true,
  10. bool addAutomaticKeepAlives = true,
  11. bool addSemanticIndexes = true,
  12. double? cacheExtent,
  13. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  14. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  15. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  16. String? restorationId,
  17. Clip clipBehavior = Clip.hardEdge,
  18. required WidgetBuilder loadingListingBuilder,
  19. required WidgetBuilder errorListingBuilder,
  20. required WidgetBuilder completedListingBuilder,
  21. required WidgetBuilder refreshBuilder,
  22. required PagingStatus status,
})

Implementation

const PagingSilverBuilder({
  Key? key,
  this.padding = EdgeInsets.zero,
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics,
  bool shrinkWrap = false,
  this.addRepaintBoundaries = true,
  this.addAutomaticKeepAlives = true,
  this.addSemanticIndexes = true,
  double? cacheExtent,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  required this.builderDelegate,
  // Corresponds to [ScrollView.restorationId]
  String? restorationId,
  // Corresponds to [ScrollView.clipBehavior]
  Clip clipBehavior = Clip.hardEdge,
  required this.loadingListingBuilder,
  required this.errorListingBuilder,
  required this.completedListingBuilder,
  required this.refreshBuilder,
  required this.status,
}) : super(
        key: key,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: controller,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        cacheExtent: cacheExtent,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );