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>>?
no setter
bodyUsed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Headers
no setter
ok bool
no setter
redirected bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
no setter
statusText String
no setter
type ResponseType
no setter
url Uri
no setter

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