onError method
加载失败
Implementation
void onError(KRefreshType type) {
if (type == KRefreshType.first) {
refreshController.resetFooter();
} else if (type == KRefreshType.refresh) {
refreshController.finishRefresh(IndicatorResult.fail);
refreshController.resetFooter();
} else if (type == KRefreshType.up) {
refreshController.finishRefresh(IndicatorResult.fail);
}
}