PagingListView<PageKeyType, ItemType>.separated constructor

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

Implementation

const PagingListView.separated({
  Key? key,
  this.isEnablePullToRefresh = true,
  this.padding = EdgeInsets.zero,
  required SeparatorBuilder<ItemType> separatorBuilder,
  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 = separatorBuilder,
      super(
        builderDelegate: builderDelegate,
        emptyBuilder: emptyBuilder,
        loadingBuilder: loadingBuilder,
        errorBuilder: errorBuilder,
        pageDataSource: pageDataSource,
        refreshBuilder: refreshBuilder,
        key: key,
      );