get<T> method
Implementation
Future<BasicModel> get<T>(
String path, {
dynamic tag,
Map<String, dynamic>? params,
Object? data,
bool? loading,
Options? options,
CancelToken? cancelToken,
}) async {
assert(_singleton != null, '请先调用 initialize');
if (hasNetWork) return notNetWorkModel;
_addLoading(loading);
final res = await dio.get<T>(path,
data: data,
options: _initBasicOptions(options, path),
cancelToken: cancelToken,
params: basicDioOptions.extraParams?.call(path, params) ?? params);
return _response(res, tag);
}