PagedSliverList<PageKeyType, ItemType> constructor

const PagedSliverList<PageKeyType, ItemType>({
  1. required PagingState<PageKeyType, ItemType> state,
  2. required NextPageCallback fetchNextPage,
  3. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  4. bool addAutomaticKeepAlives = true,
  5. bool addRepaintBoundaries = true,
  6. bool addSemanticIndexes = true,
  7. double? itemExtent,
  8. Widget? prototypeItem,
  9. SemanticIndexCallback? semanticIndexCallback,
  10. bool shrinkWrapFirstPageIndicators = false,
  11. Key? key,
})

Implementation

const PagedSliverList({
  required this.state,
  required this.fetchNextPage,
  required this.builderDelegate,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.itemExtent,
  this.prototypeItem,
  this.semanticIndexCallback,
  this.shrinkWrapFirstPageIndicators = false,
  super.key,
})  : assert(
        itemExtent == null || prototypeItem == null,
        'You can only pass itemExtent or prototypeItem, not both',
      ),
      _separatorBuilder = null;