refresh method
刷新数据
Implementation
void refresh(BuildContext context) {
//网络异常时显示失败视图并结束请求
NetworkManager.instance.isConnected().then((netStatus) {
if (netStatus ?? true) {
_page = 1;
isNoMore = false;
refreshController?.isAutoTriggerLoad = true;
modelListener?.onRequestData(context, RequestWay.refresh);
} else {
finishRefresh();
}
});
}