HttpResult<T extends BaseHttpResponse> class
Contains the result of the HTTP operation.
The result is not null when the request succeed The error is not null when the request fails
Constructors
- HttpResult({T? result, ErrorHttpResponse? error})
Properties
- error → ErrorHttpResponse?
-
final
- hasError → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- result → T?
-
final
- 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