SliverChildListDelegate.fixed constructor

const SliverChildListDelegate.fixed(
  1. List<Widget> children, {
  2. bool addAutomaticKeepAlives = true,
  3. bool addRepaintBoundaries = true,
  4. bool addSemanticIndexes = true,
  5. SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback,
  6. int semanticIndexOffset = 0,
})

Creates a constant version of the delegate that supplies children for slivers using the given list.

If the order of the children will change, consider using the regular SliverChildListDelegate constructor.

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

Implementation

const SliverChildListDelegate.fixed(
  this.children, {
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
  this.semanticIndexOffset = 0,
}) : _keyToIndex = null;