MyListView<T> constructor

MyListView<T>(
  1. List<T> data,
  2. IndexedWidgetBuilder itemBuilder, {
  3. Function? onRefresh,
  4. Function? loadMore,
  5. Function? endRefresh,
  6. double? height,
  7. Key? key,
  8. Key? listKey,
  9. ScrollController? scrollController,
  10. EasyRefreshController? refreshController,
  11. bool pullWidget = true,
  12. RefreshController? pullToRefreshController,
  13. Widget? placeWidget,
  14. bool isRefreshOnStart = false,
  15. bool isRefreshAutoFinish = true,
  16. List<String> processingText = const ['刷新中...', '刷新完成'],
  17. List<String> loadingText = const ['加载中...', '加载完成'],
  18. double spaceMain = 10.0,
  19. 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);