SliverLazyColumn<T> constructor

const SliverLazyColumn<T>({
  1. Key? key,
  2. required List<T> data,
  3. required int? childCount,
  4. required Widget child(
    1. BuildContext context,
    2. T element,
    3. int index
    ),
  5. void onItemClick(
    1. BuildContext context,
    2. T element,
    3. int index
    )?,
  6. ChildIndexGetter? findChildIndexCallback,
  7. bool addAutomaticKeepAlives = true,
  8. bool addRepaintBoundaries = true,
  9. bool addSemanticIndexes = true,
  10. int semanticIndexOffset = 0,
})

Implementation

const SliverLazyColumn({
  Key? key,
  required this.data,
  required this.childCount,
  required this.child,
  this.onItemClick,
  this.findChildIndexCallback,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.semanticIndexOffset = 0,
}) : super(key: key);