CollectionView<T>.separated constructor

const CollectionView<T>.separated({
  1. Key? key,
  2. required dynamic data(),
  3. required CollectionItemBuilder<T> builder,
  4. required IndexedWidgetBuilder? separatorBuilder,
  5. dynamic transform(
    1. List<T> data
    )?,
  6. Widget? empty,
  7. LoadingStyle? loadingStyle,
  8. String? stateName,
  9. Axis? scrollDirection,
  10. bool? reverse,
  11. ScrollController? controller,
  12. bool? primary,
  13. ScrollPhysics? physics,
  14. bool? shrinkWrap,
  15. EdgeInsets? padding,
  16. double? itemExtent,
  17. Widget? prototypeItem,
  18. ChildIndexGetter? findChildIndexCallback,
  19. bool addAutomaticKeepAlives = true,
  20. bool addRepaintBoundaries = true,
  21. bool addSemanticIndexes = true,
  22. double? cacheExtent,
  23. int? semanticChildCount,
  24. DragStartBehavior? dragStartBehavior,
  25. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  26. String? restorationId,
  27. Clip? clipBehavior,
  28. Widget? header,
  29. dynamic sort(
    1. List<T> items
    )?,
  30. double? spacing,
})

Implementation

const CollectionView.separated({
  super.key,
  required Function() data,
  required this.builder,
  required this.separatorBuilder,
  this.transform,
  this.empty,
  this.loadingStyle,
  this.stateName,
  this.scrollDirection,
  this.reverse,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap,
  this.padding,
  this.itemExtent,
  this.prototypeItem,
  this.findChildIndexCallback,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior,
  this.keyboardDismissBehavior,
  this.restorationId,
  this.clipBehavior,
  this.header,
  this.sort,
  this.spacing,
}) : kind = CollectionViewKind.separated,
     crossAxisCount = null,
     mainAxisSpacing = null,
     crossAxisSpacing = null,
     isPullable = false,
     paginatedData = null,
     onRefresh = null,
     beforeRefresh = null,
     afterRefresh = null,
     headerStyle = null,
     footerLoadingIcon = null,
     this.data = data;