WebResourceRequest class

Class representing a resource request of the WebView.

Constructors

WebResourceRequest({bool? hasGesture, Map<String, String>? headers, bool? isForMainFrame, bool? isRedirect, String? method, required WebUri url})

Properties

hasGesture bool?
Gets whether a gesture (such as a click) was associated with the request. For security reasons in certain situations this method may return false even though the sequence of events which caused the request to be created was initiated by a user gesture.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
The headers associated with the request.
getter/setter pair
isForMainFrame bool?
Whether the request was made in order to fetch the main frame's document.
getter/setter pair
isRedirect bool?
Whether the request was a result of a server-side redirect.
getter/setter pair
method String?
The method associated with the request, for example GET.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url WebUri
The URL for which the resource request was made.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
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) WebResourceRequest?
Gets a possible WebResourceRequest instance from a Map value.