InAppWebViewFlutterPlugin constructor

InAppWebViewFlutterPlugin(
  1. Registrar registrar
)

Constructs a new instance of InAppWebViewFlutterPlugin.

Implementation

InAppWebViewFlutterPlugin(Registrar registrar) {
  platformViewRegistry.registerViewFactory('wtf.zikzak/zikzak_inappwebview',
      (int viewId) {
    var webView =
        InAppWebViewWebElement(viewId: viewId, messenger: registrar);
    WebPlatformManager.webViews.putIfAbsent(viewId, () => webView);
    return webView.iframeContainer;
  });
}