SliverChildBuilderDelegate constructor

const SliverChildBuilderDelegate(IndexedWidgetBuilder builder, { int childCount, bool addAutomaticKeepAlives: true, bool addRepaintBoundaries: true, bool addSemanticIndexes: true, SemanticIndexCallback semanticIndexCallback: _kDefaultSemanticIndexCallback, int semanticIndexOffset: 0 })

Creates a delegate that supplies children for slivers using the given builder callback.

The builder, addAutomaticKeepAlives, addRepaintBoundaries, addSemanticIndexes, and semanticIndexCallback arguments must not be null.

Implementation

const SliverChildBuilderDelegate(
  this.builder, {
  this.childCount,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
  this.semanticIndexOffset = 0,
}) : assert(builder != null),
     assert(addAutomaticKeepAlives != null),
     assert(addRepaintBoundaries != null),
     assert(addSemanticIndexes != null),
     assert(semanticIndexCallback != null);