NyPullToRefresh<T> constructor

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

Implementation

const NyPullToRefresh(
    {super.key,
    this.onRefresh,
    this.beforeRefresh,
    this.afterRefresh,
    required this.child,
    required this.data,
    this.empty,
    this.loadingStyle,
    this.stateName,
    this.transform,
    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.header,
    this.footerLoadingIcon,
    this.sort})
    : kind = "builder",
      crossAxisCount = null,
      mainAxisSpacing = null,
      crossAxisSpacing = null,
      separatorBuilder = null;