WebWebViewWidget constructor

WebWebViewWidget(
  1. PlatformWebViewWidgetCreationParams params
)

Constructs a WebWebViewWidget.

Implementation

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