NyListView<T>.separated constructor

NyListView<T>.separated({
  1. Key? key,
  2. required Future data(),
  3. dynamic transform(
    1. List<T> data
    )?,
  4. required Widget child(
    1. BuildContext context,
    2. dynamic data
    ),
  5. required IndexedWidgetBuilder? separatorBuilder,
  6. Widget? empty,
  7. Widget? loading,
  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. bool? useSkeletonizer,
  29. Widget? header,
  30. dynamic sort(
    1. List<T> items
    )?,
})

Implementation

NyListView.separated(
    {Key? key,
    required this.data,
    this.transform,
    required this.child,
    required this.separatorBuilder,
    this.empty,
    this.loading,
    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.useSkeletonizer,
    this.header,
    this.sort})
    : kind = "separated",
      crossAxisCount = null,
      mainAxisSpacing = null,
      crossAxisSpacing = null,
      super(key: key);