ErrorResponse.unauthorized constructor

ErrorResponse.unauthorized({
  1. String message = "Unauthorized",
})

Implementation

factory ErrorResponse.unauthorized({String message = "Unauthorized"}) {
  return ErrorResponse(status: ResponseStatus.unauthorized, message: message);
}