InAppBrowser constructor

InAppBrowser({
  1. int? windowId,
  2. UnmodifiableListView<UserScript>? initialUserScripts,
  3. WebViewImplementation implementation = WebViewImplementation.NATIVE,
})

Implementation

InAppBrowser(
    {this.windowId,
    this.initialUserScripts,
    this.implementation = WebViewImplementation.NATIVE}) {
  id = IdGenerator.generate();
  this._channel =
      MethodChannel('com.pichillilorenzo/flutter_inappbrowser_$id');
  this._channel.setMethodCallHandler(handleMethod);
  _isOpened = false;
  webViewController = new InAppWebViewController.fromInAppBrowser(
      this._channel, this, this.initialUserScripts);
}