MyBody.child constructor

const MyBody.child({
  1. Key? key,
  2. required Widget? child,
  3. Widget? topWidget,
  4. num? padding,
  5. int left = 0,
  6. int top = 0,
  7. int right = 0,
  8. num? space,
  9. bool bottom = true,
  10. bool slide = false,
  11. Color? backgroundColor,
  12. Decoration? decoration,
  13. EasyRefreshController? controller,
  14. OnRefreshCallback? refresh,
  15. OnLoadCallback? load,
  16. bool fullLine = true,
  17. bool noList = true,
  18. bool? listEx,
  19. Header? header,
  20. Footer? footer,
  21. bool topShrink = false,
  22. double? cacheExtent,
})

非list 需自己处理或者noList = true;

Implementation

const MyBody.child({
  Key? key,
  required this.child,
  this.topWidget,
  this.padding,
  this.left = 0,
  this.top = 0,
  this.right = 0,
  this.space,
  this.bottom = true,
  this.slide = false,
  this.backgroundColor,
  this.decoration,
  this.controller,
  this.refresh,
  this.load,
  this.fullLine = true,
  this.noList = true,
  this.listEx,
  this.header,
  this.footer,
  this.topShrink = false,
  this.cacheExtent,
})  : children = null,
      itemBuilder = null,
      itemCount = null,
      super(key: key);