Response<T> class

Available Extensions

Constructors

Response.from(Response from)

Properties

data ↔ T?
Response body. may have been transformed, please refer to ResponseType.
getter/setter pairinherited
extra Map<String, dynamic>
Custom field that you can retrieve it later in then.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
headers ↔ Headers
Response headers.
getter/setter pairinherited
isRedirect bool?
Whether this response is a redirect. ** Attention **: Whether this field is available depends on whether the implementation of the adapter supports it or not.
getter/setter pairinherited
realUri Uri
Return the final real request uri (maybe redirect).
no setterinherited
redirects List<RedirectRecord>
Returns the series of redirects this connection has been through. The list will be empty if no redirects were followed. redirects will be updated both in the case of an automatic and a manual redirect.
getter/setter pairinherited
requestOptions ↔ RequestOptions
The corresponding request info.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
Http status code.
getter/setter pairinherited
statusMessage String?
Returns the reason phrase associated with the status code. The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the body.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
We are more concerned about data field.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited