InAppBrowser constructor Null safety

InAppBrowser(
  1. {int? windowId,
  2. UnmodifiableListView<UserScript>? initialUserScripts}
)

Implementation

InAppBrowser({this.windowId, this.initialUserScripts}) {
  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);
}