InAppBrowser constructor
- ContextMenu? contextMenu,
- PullToRefreshController? pullToRefreshController,
- FindInteractionController? findInteractionController,
- UnmodifiableListView<
UserScript> ? initialUserScripts, - int? windowId,
- 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.
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,
),
);