MyListView<T> constructor
MyListView<T> (
- List<
T> data, - IndexedWidgetBuilder itemBuilder, {
- Function? onRefresh,
- Function? loadMore,
- Function? endRefresh,
- double? height,
- Key? key,
- Key? listKey,
- ScrollController? scrollController,
- EasyRefreshController? refreshController,
- bool pullWidget = true,
- RefreshController? pullToRefreshController,
- Widget? placeWidget,
- bool isRefreshOnStart = false,
- bool isRefreshAutoFinish = true,
- List<
String> processingText = const ['刷新中...', '刷新完成'], - List<
String> loadingText = const ['加载中...', '加载完成'], - double spaceMain = 10.0,
- Axis direction = Axis.vertical,
Implementation
MyListView(this.data, this.itemBuilder,
{this.onRefresh,
this.loadMore,
this.endRefresh,
this.height,
this.key,
this.listKey,
this.scrollController,
this.refreshController,
this.pullWidget = true,
this.pullToRefreshController,
this.placeWidget,
this.isRefreshOnStart = false,
this.isRefreshAutoFinish = true,
this.processingText = const ['刷新中...', '刷新完成'],
this.loadingText = const ['加载中...', '加载完成'],
this.spaceMain = 10.0,
this.direction = Axis.vertical})
: super(key: key);