SListView.builder constructor

const SListView.builder({
  1. Key? key,
  2. required NullableIndexedWidgetBuilder? builder,
  3. int? childCount,
  4. bool addAutomaticKeepAlives = true,
  5. bool addRepaintBoundaries = true,
  6. bool addSemanticIndexes = true,
  7. SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback,
  8. int semanticIndexOffset = 0,
  9. ChildIndexGetter? findChildIndexCallback,
})

Implementation

const SListView.builder({
  super.key,
  required this.builder,
  this.childCount,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
  this.semanticIndexOffset = 0,
  this.findChildIndexCallback,
}) : children = const [];