onError method
加载失败
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);
}
}