onError method

void onError(
  1. RefreshType type
)

加载失败

Implementation

void onError(RefreshType type) {
  if (type == RefreshType.first) {
    refreshController.resetFooter();
  } else if (type == RefreshType.refresh) {
    refreshController.finishRefresh(IndicatorResult.fail);
    refreshController.resetFooter();
  } else if (type == RefreshType.up) {
    refreshController.finishRefresh(IndicatorResult.fail);
  }
}