HttpResult<T> class
Constructors
- HttpResult.exception(dynamic _exception)
- HttpResult.result(Response? _response, T? _data)
Properties
- body → String
-
no setter
- data → T
-
no setter
- error → bool
-
no setter
- exception → dynamic
-
no setter
- hasData → bool
-
no setter
- hasException → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRequest → bool
-
no setter
- hasResponse → bool
-
no setter
-
headers
→ Map<
String, String> -
no setter
- request → BaseRequest
-
no setter
- response → Response
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
no setter
- statusAccepted → bool
-
no setter
- statusBadGateway → bool
-
no setter
- statusBadRequest → bool
-
no setter
- statusConflict → bool
-
no setter
- statusCreated → bool
-
no setter
- statusExpectationFailed → bool
-
no setter
- statusFailedDependency → bool
-
no setter
- statusForbidden → bool
-
no setter
- statusGatewayTimeout → bool
-
no setter
- statusGone → bool
-
no setter
- statusInternalServerError → bool
-
no setter
- statusLengthRequired → bool
-
no setter
- statusLocked → bool
-
no setter
- statusMethodNotAllowed → bool
-
no setter
- statusNoContent → bool
-
no setter
- statusNotAcceptable → bool
-
no setter
- statusNotFound → bool
-
no setter
- statusNotImplemented → bool
-
no setter
- statusOk → bool
-
no setter
- statusPreconditionFailed → bool
-
no setter
- statusPreconditionRequired → bool
-
no setter
- statusRequestEntityTooLarge → bool
-
no setter
- statusRequestTimeout → bool
-
no setter
-
no setter
- statusTooManyRequests → bool
-
no setter
-
no setter
- statusUnsupportedMediaType → bool
-
no setter
- success → bool
-
no setter
Methods
-
handle(
{OnSuccess< T> ? onSuccess, OnError? onError, OnException? onException, OnFailure? onFailure}) → void -
handleEmpty(
{OnSuccessEmpty? onSuccess, OnError? onError, OnException? onException, OnFailure? onFailure}) → void -
hasStatus(
int code) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
OnError onError) → HttpResult< T> -
onException(
OnException onException) → HttpResult< T> -
onFailure(
OnFailure onFailure) → HttpResult< T> -
onSuccess(
OnSuccess< T> onSuccess) → HttpResult<T> -
onSuccessEmpty(
OnSuccessEmpty onSuccess) → HttpResult< T> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited