InAppWebViewController constructor Null safety

InAppWebViewController(
  1. dynamic id,
  2. WebView webview
)

Implementation

InAppWebViewController(dynamic id, WebView webview) {
  this._id = id;
  this._channel =
      MethodChannel('com.pichillilorenzo/flutter_inappwebview_$id');
  this._channel.setMethodCallHandler(handleMethod);
  this._webview = webview;
  this._userScripts =
      List<UserScript>.from(webview.initialUserScripts ?? <UserScript>[]);
  this._init();
}