Response class

Constructors

Response(Object? body, {int? status, String? statusText, Headers? headers})
Response.error()
factory
Response.json(Object? data, {int? status, String? statusText, Headers? headers})
factory
Response.redirect(Uri url, [int? status = 302])
factory

Properties

body Stream<List<int>>?
read-only
bodyUsed bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
headers Headers
read-only
ok bool
read-only
redirected bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
status int
read-only
statusText String
read-only
type ResponseType
read-only
url Uri
read-only

Methods

arrayBuffer() Future<ByteBuffer>
blob() Future<Object>
clone() Response
formData() Future<FormData>
json() Future<Object?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text() Future<String>
toString() String
A string representation of this object.
inherited

Operators

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