Response<D> class
This class contains the response details of a request
This includes the status of the response
The data or the parsed body of the response
The error if the request failed or the parsing failed
and hasError which is true if the error is not null
and isCancelled which is true if the request was cancelled by the user.
If the request gets cancelled by the user, the data and error will
be null, and the status will be -1
.
Properties
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