MyRefreshHeader constructor

MyRefreshHeader({
  1. Key? key,
  2. Widget? child,
  3. Function? onRefresh,
  4. Function? loadMore,
  5. bool isRefreshAutoFinish = true,
  6. bool isRefreshOnStart = false,
  7. List<String> processingText = const ['刷新中...', '刷新完成'],
  8. List<String> loadingText = const ['加载中...', '加载完成'],
  9. Color textColor = const Color(0xffA6B0AC),
  10. num triggerOffset = 35,
  11. num maxOverOffset = 50,
  12. ScrollController? scrollController,
  13. bool pullWidget = true,
  14. RefreshController? pullToRefreshController,
  15. EasyRefreshController? refreshController,
})

Implementation

MyRefreshHeader(
    {Key? key,
    this.child,
    this.onRefresh,
    this.loadMore,
    this.isRefreshAutoFinish = true,
    this.isRefreshOnStart = false,
    this.processingText = const ['刷新中...', '刷新完成'],
    this.loadingText = const ['加载中...', '加载完成'],
    this.textColor = const Color(0xffA6B0AC),
    this.triggerOffset = 35,
    this.maxOverOffset = 50,
    this.scrollController,
    this.pullWidget = true,
    this.pullToRefreshController,
    this.refreshController})
    : super(key: key);