InAppWebViewController.fromInAppBrowser constructor Null safety

InAppWebViewController.fromInAppBrowser(
  1. MethodChannel channel,
  2. InAppBrowser inAppBrowser,
  3. UnmodifiableListView<UserScript>? initialUserScripts
)

Implementation

InAppWebViewController.fromInAppBrowser(
    MethodChannel channel,
    InAppBrowser inAppBrowser,
    UnmodifiableListView<UserScript>? initialUserScripts) {
  this._channel = channel;
  this._inAppBrowser = inAppBrowser;
  this._userScripts =
      List<UserScript>.from(initialUserScripts ?? <UserScript>[]);
  this._init();
}