UtilServerResponse class
(en) A utility for formatting server responses.
(ja)サーバー応答を一定のフォーマットに沿って整形するためのユーティリティです。
Constructors
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cancelled(
) → ServerResponse - (en) Creates a server response object for a request that was cancelled by the caller via a CancelToken.
-
otherError(
Object e) → ServerResponse - (en) Creates a server response object for any other error.
-
serverError(
Response res, {EnumServerResponseType resType = EnumServerResponseType.json}) → ServerResponse - (en) Creates a server response object in case of a server error.
-
signInRequired(
{Response? res, EnumServerResponseType resType = EnumServerResponseType.json}) → ServerResponse - (en) Creates a server response object when authentication is required.
-
success(
Response res, {EnumServerResponseType resType = EnumServerResponseType.json}) → ServerResponse - (en) Creates a successful server response object.
-
timeout(
Object e) → ServerResponse - (en) Creates a timeout server response object.