InAppBrowser constructor

InAppBrowser({
  1. ContextMenu? contextMenu,
  2. PullToRefreshController? pullToRefreshController,
  3. FindInteractionController? findInteractionController,
  4. UnmodifiableListView<UserScript>? initialUserScripts,
  5. int? windowId,
  6. WebViewEnvironment? webViewEnvironment,
})

Constructs a InAppBrowser.

This class represents a native WebView displayed on top of the Flutter App, so it's not integrated into the Flutter widget tree. It uses the native WebView of the platform. The webViewController field can be used to access the PlatformInAppWebViewController API.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Windows

Implementation

InAppBrowser({
  ContextMenu? contextMenu,
  PullToRefreshController? pullToRefreshController,
  FindInteractionController? findInteractionController,
  UnmodifiableListView<UserScript>? initialUserScripts,
  int? windowId,
  WebViewEnvironment? webViewEnvironment,
}) : this.fromPlatformCreationParams(
        PlatformInAppBrowserCreationParams(
          contextMenu: contextMenu,
          pullToRefreshController: pullToRefreshController?.platform,
          findInteractionController: findInteractionController?.platform,
          initialUserScripts: initialUserScripts,
          windowId: windowId,
          webViewEnvironment: webViewEnvironment?.platform,
        ),
      );