isLoading property
HttpUtilWithLoading
get
isLoading
获取带加载提示的 HttpUtil 实例 用于链式调用,整个链路共享一个加载提示
示例:
final result = await http.isLoading
.send(method: hm.post, path: '/api/upload')
.extractModel<FileUploadResult>(FileUploadResult.fromConfigJson)
.thenWith((uploadResult) => http.uploadToUrlResponse(...));
Implementation
HttpUtilWithLoading get isLoading => HttpUtilWithLoading(this);