easyRefreshList function
Widget
easyRefreshList({
- required List<
Widget> children, - EasyRefreshController? controller,
- OnRefreshCallback? refresh,
- OnLoadCallback? load,
- num space = 16,
- bool slide = true,
- bool isInterval = true,
- bool shrinkWrap = false,
- num mainPadding = 0,
- num crossPadding = 0,
- bool fullLine = true,
- double? cacheExtent,
- Header? header,
Implementation
Widget easyRefreshList({
required List<Widget> children,
EasyRefreshController? controller,
OnRefreshCallback? refresh,
OnLoadCallback? load,
num space = 16,
bool slide = true,
bool isInterval = true,
bool shrinkWrap = false,
num mainPadding = 0,
num crossPadding = 0,
bool fullLine = true,
double? cacheExtent,
Footer? footer,
Header? header,
}) {
List<Widget> child = [];
child.add(ListIntervalView.children(
children: children,
space: space,
fullLine: fullLine,
mainPadding: mainPadding,
crossPadding: crossPadding));
Widget view = EasyRefresh.custom(
controller: controller,
onRefresh: refresh,
onLoad: load,
shrinkWrap: shrinkWrap,
topBouncing: slide,
bottomBouncing: slide,
footer: footer,
header: header,
cacheExtent: cacheExtent,
slivers: <Widget>[SliverList(delegate: SliverChildListDelegate(child))],
);
if (!isInterval) {
view = Container(
padding: Spacing.all(leftR: crossPadding, topB: mainPadding),
child: view,
);
}
return view;
}