SendResponse class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
sendAuthErrorToUser(ResponseHolder response, String e, String? code, {int errorCode = 401})
→ ResponseHolder
-
-
sendBadBodyErrorToUser(ResponseHolder response, String e, String? code, {int errorCode = 400})
→ ResponseHolder
-
-
sendDataToUser(ResponseHolder response, dynamic msg, {String? dataFieldName, int httpCode = 200})
→ ResponseHolder
-
-
sendForbidden(ResponseHolder response, String message, String? code, {int errorCode = 403})
→ ResponseHolder
-
-
sendOtherExceptionErrorToUser(ResponseHolder response, String e, String? code, {int errorCode = 500})
→ ResponseHolder
-
-
sendUnknownError(ResponseHolder response, String? code)
→ ResponseHolder
-