PagingListView<PageKeyType, ItemType> constructor

const PagingListView<PageKeyType, ItemType>({
  1. Key? key,
  2. bool isEnablePullToRefresh = true,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. ScrollController? controller,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool shrinkWrap = false,
  10. bool addRepaintBoundaries = true,
  11. bool addAutomaticKeepAlives = true,
  12. bool addSemanticIndexes = true,
  13. double? cacheExtent,
  14. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  15. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  16. SemanticIndexCallback? semanticIndexCallback,
  17. double? itemExtent,
  18. int invisibleItemsThreshold = 3,
  19. WidgetBuilder? newPageErrorIndicatorBuilder,
  20. WidgetBuilder? newPageCompletedIndicatorBuilder,
  21. NewPageWidgetBuilder? newPageProgressIndicatorBuilder,
  22. AddItemWidgetBuilder<ItemType>? addItemBuilder,
  23. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  24. required DataSource<PageKeyType, ItemType> pageDataSource,
  25. WidgetBuilder? emptyBuilder,
  26. WidgetBuilder? loadingBuilder,
  27. ErrorBuilder? errorBuilder,
  28. WidgetBuilder? refreshBuilder,
})

Implementation

const PagingListView({
  Key? key,
  this.isEnablePullToRefresh = true,
  this.padding = EdgeInsets.zero,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.addRepaintBoundaries = true,
  this.addAutomaticKeepAlives = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.semanticIndexCallback,
  this.itemExtent,
  this.invisibleItemsThreshold = 3,
  this.newPageErrorIndicatorBuilder,
  this.newPageCompletedIndicatorBuilder,
  this.newPageProgressIndicatorBuilder,
  this.addItemBuilder,
  required PagedChildBuilderDelegate<ItemType> builderDelegate,
  required DataSource<PageKeyType, ItemType> pageDataSource,
  WidgetBuilder? emptyBuilder,
  WidgetBuilder? loadingBuilder,
  ErrorBuilder? errorBuilder,
  WidgetBuilder? refreshBuilder,
})  : _separatorBuilder = null,
      super(
        builderDelegate: builderDelegate,
        emptyBuilder: emptyBuilder,
        loadingBuilder: loadingBuilder,
        errorBuilder: errorBuilder,
        pageDataSource: pageDataSource,
        refreshBuilder: refreshBuilder,
        key: key,
      );