CreateWindowAction class

Class that represents the navigation request used by the PlatformWebViewCreationParams.onCreateWindow event.

Inheritance

Constructors

CreateWindowAction({@Deprecated('Use isDialog instead') bool? androidIsDialog, @Deprecated('Use windowFeatures instead') IOSWKWindowFeatures? iosWindowFeatures, bool? isDialog, WindowFeatures? windowFeatures, required int windowId, required URLRequest request, required bool isForMainFrame, @Deprecated('Use hasGesture instead') bool? androidHasGesture, bool? hasGesture, @Deprecated('Use isRedirect instead') bool? androidIsRedirect, bool? isRedirect, @Deprecated('Use navigationType instead') IOSWKNavigationType? iosWKNavigationType, NavigationType? navigationType, @Deprecated('Use sourceFrame instead') IOSWKFrameInfo? iosSourceFrame, FrameInfo? sourceFrame, @Deprecated('Use targetFrame instead') IOSWKFrameInfo? iosTargetFrame, FrameInfo? targetFrame, bool? shouldPerformDownload})

Properties

androidHasGesture bool?
Use hasGesture instead.
getter/setter pairinherited
androidIsDialog bool?
Use isDialog instead.
getter/setter pair
androidIsRedirect bool?
Use isRedirect instead.
getter/setter pairinherited
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 pairinherited
hashCode int
The hash code for this object.
no setterinherited
iosSourceFrame IOSWKFrameInfo?
Use sourceFrame instead.
getter/setter pairinherited
iosTargetFrame IOSWKFrameInfo?
Use targetFrame instead.
getter/setter pairinherited
iosWindowFeatures IOSWKWindowFeatures?
Use windowFeatures instead.
getter/setter pair
iosWKNavigationType IOSWKNavigationType?
Use navigationType instead.
getter/setter pairinherited
isDialog bool?
Indicates if the new window should be a dialog, rather than a full-size window.
getter/setter pair
isForMainFrame bool
Indicates whether the request was made for the main frame.
getter/setter pairinherited
isRedirect bool?
Gets whether the request was a result of a server-side redirect.
getter/setter pairinherited
The type of action triggering the navigation.ì
getter/setter pairinherited
request URLRequest
The URL request object associated with the navigation action.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldPerformDownload bool?
A value indicating whether the web content used a download attribute to indicate that this should be downloaded.
getter/setter pairinherited
sourceFrame FrameInfo?
The frame that requested the navigation.
getter/setter pairinherited
targetFrame FrameInfo?
The frame in which to display the new content.
getter/setter pairinherited
windowFeatures WindowFeatures?
Window features requested by the webpage.
getter/setter pair
windowId int
The window id. Used by WebView to create a new WebView.
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.
override
toMap() Map<String, dynamic>
Converts instance to a map.
override
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) CreateWindowAction?
Gets a possible CreateWindowAction instance from a Map value.
override