WebWebViewWidget constructor

WebWebViewWidget(
  1. PlatformWebViewWidgetCreationParams params
)

Constructs a WebWebViewWidget.

Implementation

WebWebViewWidget(PlatformWebViewWidgetCreationParams params)
    : super.implementation(params) {
  final WebWebViewController controller =
      params.controller as WebWebViewController;
  ui.platformViewRegistry.registerViewFactory(
    controller._webWebViewParams.iFrame.id,
    (int viewId) =>
        html.DivElement()..append(controller._webWebViewParams.iFrame),
  );
}