CreateWindowAction constructor
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 sourceFrame instead') IOSWKFrameInfo? iosSourceFrame,
- FrameInfo? sourceFrame,
- @Deprecated('Use targetFrame instead') IOSWKFrameInfo? iosTargetFrame,
- FrameInfo? targetFrame,
- bool? shouldPerformDownload,
Implementation
CreateWindowAction(
{@Deprecated('Use isDialog instead') this.androidIsDialog,
@Deprecated('Use windowFeatures instead') this.iosWindowFeatures,
this.isDialog,
this.windowFeatures,
required this.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})
: super(
request: request,
isForMainFrame: isForMainFrame,
androidHasGesture: androidHasGesture,
hasGesture: hasGesture,
androidIsRedirect: androidIsRedirect,
isRedirect: isRedirect,
iosWKNavigationType: iosWKNavigationType,
navigationType: navigationType,
iosSourceFrame: iosSourceFrame,
sourceFrame: sourceFrame,
iosTargetFrame: iosTargetFrame,
targetFrame: targetFrame,
shouldPerformDownload: shouldPerformDownload) {
isDialog = isDialog ?? androidIsDialog;
windowFeatures =
windowFeatures ?? WindowFeatures.fromMap(iosWindowFeatures?.toMap());
}