NyPullToRefresh<T>.separated constructor

NyPullToRefresh<T>.separated({
  1. Key? key,
  2. dynamic onRefresh()?,
  3. dynamic beforeRefresh()?,
  4. dynamic afterRefresh(
    1. dynamic data
    )?,
  5. required Future data(
    1. int iteration
    ),
  6. List<T> transform(
    1. List<T>
    )?,
  7. required Widget child(
    1. BuildContext context,
    2. dynamic data
    ),
  8. required IndexedWidgetBuilder? separatorBuilder,
  9. Widget? empty,
  10. Widget? loading,
  11. String? stateName,
  12. Axis? scrollDirection,
  13. bool? reverse,
  14. ScrollController? controller,
  15. bool? primary,
  16. ScrollPhysics? physics,
  17. bool? shrinkWrap,
  18. EdgeInsets? padding = EdgeInsets.zero,
  19. double? itemExtent,
  20. Widget? prototypeItem,
  21. ChildIndexGetter? findChildIndexCallback,
  22. bool addAutomaticKeepAlives = true,
  23. bool addRepaintBoundaries = true,
  24. bool addSemanticIndexes = true,
  25. double? cacheExtent,
  26. int? semanticChildCount,
  27. DragStartBehavior? dragStartBehavior,
  28. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  29. String? restorationId,
  30. String? headerStyle,
  31. Clip? clipBehavior,
  32. bool? useSkeletonizer,
  33. Widget? header,
  34. Widget? footerLoadingIcon,
  35. List sort(
    1. dynamic items
    )?,
})

Implementation

NyPullToRefresh.separated(
    {Key? key,
    this.onRefresh,
    this.beforeRefresh,
    this.afterRefresh,
    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 = EdgeInsets.zero,
    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.headerStyle,
    this.clipBehavior,
    this.useSkeletonizer,
    this.header,
    this.footerLoadingIcon,
    this.sort})
    : kind = "separated",
      crossAxisCount = null,
      mainAxisSpacing = null,
      crossAxisSpacing = null,
      super(key: key);