PermissionRequest class

Class that represents the response used by the PlatformWebViewCreationParams.onPermissionRequest event.

Constructors

PermissionRequest({FrameInfo? frame, required WebUri origin, List<PermissionResourceType> resources = const []})

Properties

frame FrameInfo?
The frame that initiates the request in the web view.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
origin WebUri
The origin of web content which attempt to access the restricted resources.
getter/setter pair
resources List<PermissionResourceType>
List of resources the web content wants to access.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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) PermissionRequest?
Gets a possible PermissionRequest instance from a Map value.