SuperSliverList.builder constructor

SuperSliverList.builder({
  1. Key? key,
  2. required NullableIndexedWidgetBuilder itemBuilder,
  3. ChildIndexGetter? findChildIndexCallback,
  4. int? itemCount,
  5. ExtentPrecalculationPolicy? extentPrecalculationPolicy,
  6. ListController? listController,
  7. ExtentEstimationProvider? extentEstimation,
  8. bool delayPopulatingCacheArea = true,
  9. bool layoutKeptAliveChildren = false,
  10. bool addAutomaticKeepAlives = true,
  11. bool addRepaintBoundaries = true,
  12. bool addSemanticIndexes = true,
})

Creates a SuperSliverList from widget builder.

See SliverList.builder for details.

Implementation

SuperSliverList.builder({
  super.key,
  required NullableIndexedWidgetBuilder itemBuilder,
  ChildIndexGetter? findChildIndexCallback,
  int? itemCount,
  this.extentPrecalculationPolicy,
  this.listController,
  this.extentEstimation,
  this.delayPopulatingCacheArea = true,
  this.layoutKeptAliveChildren = false,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
}) : super(
        delegate: SliverChildBuilderDelegate(
          itemBuilder,
          findChildIndexCallback: findChildIndexCallback,
          childCount: itemCount,
          addAutomaticKeepAlives: addAutomaticKeepAlives,
          addRepaintBoundaries: addRepaintBoundaries,
          addSemanticIndexes: addSemanticIndexes,
        ),
      );