EasyRefresh.custom constructor

EasyRefresh.custom({
  1. Key? key,
  2. Key? listKey,
  3. EasyRefreshController? controller,
  4. OnRefreshCallback? onRefresh,
  5. OnLoadCallback? onLoad,
  6. bool enableControlFinishRefresh = false,
  7. bool enableControlFinishLoad = false,
  8. bool taskIndependence = false,
  9. Header? header,
  10. int headerIndex = 0,
  11. Footer? footer,
  12. Axis scrollDirection = Axis.vertical,
  13. bool reverse = false,
  14. ScrollController? scrollController,
  15. bool? primary,
  16. bool shrinkWrap = false,
  17. Key? center,
  18. double anchor = 0.0,
  19. double? cacheExtent,
  20. int? semanticChildCount,
  21. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  22. bool firstRefresh = false,
  23. Widget? firstRefreshWidget,
  24. Widget? emptyWidget,
  25. bool topBouncing = true,
  26. bool bottomBouncing = true,
  27. ScrollBehavior? behavior = const EmptyOverScrollScrollBehavior(),
  28. required List<Widget>? slivers,
})

custom构造器(推荐) 直接使用CustomScrollView可用的slivers

Implementation

EasyRefresh.custom({
  Key? key,
  this.listKey,
  this.controller,
  this.onRefresh,
  this.onLoad,
  this.enableControlFinishRefresh = false,
  this.enableControlFinishLoad = false,
  this.taskIndependence = false,
  this.header,
  this.headerIndex = 0,
  this.footer,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.scrollController,
  this.primary,
  this.shrinkWrap = false,
  this.center,
  this.anchor = 0.0,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.firstRefresh = false,
  this.firstRefreshWidget,
  this.emptyWidget,
  this.topBouncing = true,
  this.bottomBouncing = true,
  this.behavior = const EmptyOverScrollScrollBehavior(),
  required this.slivers,
})  : this.builder = null,
      this.child = null,
      super(key: key);