ResponseModel.fail constructor

ResponseModel.fail([
  1. DioErrorType type = DioErrorType.unknown
])

Implementation

factory ResponseModel.fail([DioErrorType type = DioErrorType.unknown]) {
  return ResponseModel._(false, null, type);
}