Response class

Represents the response from the HTTP server.

Constructors

Response({required Map<String, String> headers, required Request request, required int status, required dynamic data})
Response constructor class
const

Properties

data → dynamic
Response body. The data type is defined in Request.responseType.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Headers of response.
final
request Request
Represents the request that will be sent to the http server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
status code coming from the server. ex: 200, 401, 404, 500...
final

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