FetchRequest class Null safety

Class that represents a HTTP request created with JavaScript using the Fetch API.

Constructors

FetchRequest({Uri? url, String? method, Map<String, dynamic>? headers, dynamic body, String? mode, FetchRequestCredential? credentials, String? cache, String? redirect, String? referrer, ReferrerPolicy? referrerPolicy, String? integrity, bool? keepalive, FetchRequestAction? action = FetchRequestAction.PROCEED})

Properties

action FetchRequestAction?
Indicates the FetchRequestAction that can be used to control the request.
read / write
body ↔ dynamic
Body of the request.
read / write
cache String?
The cache mode used by the request.
read / write
credentials FetchRequestCredential?
The request credentials used by the request.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, dynamic>?
The HTTP request headers.
read / write
integrity String?
Contains the subresource integrity value of the request.
read / write
keepalive bool?
The keepalive option used to allow the request to outlive the page.
read / write
method String?
The HTTP request method used of the request.
read / write
mode String?
The mode used by the request.
read / write
redirect String?
The redirect mode used by the request.
read / write
referrer String?
A String specifying no-referrer, client, or a URL.
read / write
referrerPolicy ReferrerPolicy?
The value of the referer HTTP header.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url Uri?
The URL of the request.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) FetchRequest?