CreateWindowAction class

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



CreateWindowAction({required int windowId, bool? androidIsDialog, IOSWKWindowFeatures? iosWindowFeatures, required URLRequest request, required bool isForMainFrame, bool? androidHasGesture, bool? androidIsRedirect, IOSWKNavigationType? iosWKNavigationType, IOSWKFrameInfo? iosSourceFrame, IOSWKFrameInfo? iosTargetFrame})


androidHasGesture 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
androidIsDialog bool?
Indicates if the new window should be a dialog, rather than a full-size window.
getter/setter pair
androidIsRedirect bool?
Gets whether the request was a result of a server-side redirect.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
iosSourceFrame IOSWKFrameInfo?
The frame that requested the navigation.
getter/setter pairinherited
iosTargetFrame IOSWKFrameInfo?
The frame in which to display the new content.
getter/setter pairinherited
iosWindowFeatures IOSWKWindowFeatures?
Window features requested by the webpage.
getter/setter pair
iosWKNavigationType IOSWKNavigationType?
The type of action triggering the navigation.
getter/setter pairinherited
isForMainFrame bool
Indicates whether the request was made for the main frame.
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
windowId int
The window id. Used by WebView to create a new WebView.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

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