InAppWebViewFlutterPlugin constructor

InAppWebViewFlutterPlugin(
  1. Registrar registrar
)

Constructs a new instance of InAppWebViewFlutterPlugin.

Implementation

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