HttpResponse.failure constructor
HttpResponse.failure({})
Implementation
HttpResponse.failure(
{String? errorMsg = '网络请求失败',
int? errorCode = 404,
Map<String, dynamic>? response,
this.data}) {
msg = errorMsg ?? "网络请求失败";
error = BadRequestException(message: errorMsg, code: errorCode);
ok = false;
}