MyBody.child constructor
const
MyBody.child({
- Key? key,
- required Widget? child,
- Widget? topWidget,
- num? padding,
- int left = 0,
- int top = 0,
- int right = 0,
- num? space,
- bool bottom = true,
- bool slide = false,
- Color? backgroundColor,
- Decoration? decoration,
- EasyRefreshController? controller,
- OnRefreshCallback? refresh,
- OnLoadCallback? load,
- bool fullLine = true,
- bool noList = true,
- bool? listEx,
- Header? header,
- bool topShrink = false,
- 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);