BasicListView<T> constructor

const BasicListView<T>({
  1. required List<T> items,
  2. int numberOfItemsInRow = 1,
  3. double? spaceBetweenItemsInRow,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. ScrollController? controller,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool shrinkWrap = false,
  10. EdgeInsetsGeometry? padding,
  11. required Widget itemBuilder(
    1. BuildContext,
    2. int,
    3. T
    ),
  12. Widget separatorBuilder(
    1. BuildContext,
    2. int
    )?,
  13. int? findChildIndexCallback(
    1. Key
    )?,
  14. bool addAutomaticKeepAlives = true,
  15. bool addRepaintBoundaries = true,
  16. bool addSemanticIndexes = true,
  17. double? cacheExtent,
  18. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  19. String? restorationId,
  20. Clip clipBehavior = Clip.hardEdge,
  21. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  22. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  23. Key? key,
})

Implementation

const BasicListView({
  required this.items,
  this.numberOfItemsInRow = 1,
  this.spaceBetweenItemsInRow,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  required this.itemBuilder,
  this.separatorBuilder,
  this.findChildIndexCallback,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  Key? key,
}) : super(key: key);