Response class
Constructors
- Response.error()
-
factory
- Response.redirect(String url, [int? status])
-
factory
Properties
- body → dynamic
-
no setter
- bodyUsed → bool
-
indicates whether the body has been read yet
no setterinherited
- 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 → String?
-
'basic'|'cors'|'default'|'error'|'opaque'|'opaqueredirect'
no setter
- url → String?
-
no setter
Methods
-
arrayBuffer(
) → Future< ByteBuffer> -
Extracts the data as a ByteBuffer object.
inherited
-
blob(
) → Future< Blob> -
Extracts the data as a Blob object.
inherited
-
clone(
) → Response -
cloneWith(
{Map< String, String> ? headers}) → Future<Response> -
Creates a new Response instance with the same content and headers,
appending the specified values from
headers
Map. -
formData(
) → Future< FormData> -
inherited
-
json<
T> () → Future< T> -
Extracts the data as a JSON object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
text(
) → Future< String> -
Extracts the data as a plain text string.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited