load method

void load(
  1. BuildContext context
)

加载数据

Implementation

void load(BuildContext context) {
  //网络异常时显示失败视图并结束请求
  NetworkManager.instance.isConnected().then((netStatus) {
    if (netStatus ?? true) {
      modelListener?.onRequestData(context, RequestWay.load);
    } else {
      finishLoad();
    }
  });
}