HttpResponse<T>.failure constructor
Implementation
HttpResponse.failure({String? errorMsg, String? errorCode}) {
this.error = BadRequestException(message: errorMsg, code: errorCode);
this.ok = false;
Get.snackbar('提示', errorMsg ?? '',
colorText: Colors.white, backgroundColor: Colors.black87);
}