CreateWindowAction constructor

CreateWindowAction({
  1. @Deprecated('Use isDialog instead') bool? androidIsDialog,
  2. @Deprecated('Use windowFeatures instead') IOSWKWindowFeatures? iosWindowFeatures,
  3. bool? isDialog,
  4. WindowFeatures? windowFeatures,
  5. required int windowId,
  6. required URLRequest request,
  7. required bool isForMainFrame,
  8. @Deprecated('Use hasGesture instead') bool? androidHasGesture,
  9. bool? hasGesture,
  10. @Deprecated('Use isRedirect instead') bool? androidIsRedirect,
  11. bool? isRedirect,
  12. @Deprecated('Use navigationType instead') IOSWKNavigationType? iosWKNavigationType,
  13. NavigationType? navigationType,
  14. @Deprecated('Use sourceFrame instead') IOSWKFrameInfo? iosSourceFrame,
  15. FrameInfo? sourceFrame,
  16. @Deprecated('Use targetFrame instead') IOSWKFrameInfo? iosTargetFrame,
  17. FrameInfo? targetFrame,
  18. 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());
}