HeadlessInAppWebView.fromPlatformCreationParams constructor

HeadlessInAppWebView.fromPlatformCreationParams({
  1. required PlatformHeadlessInAppWebViewCreationParams params,
})

Constructs a HeadlessInAppWebView.

Class that represents a WebView in headless mode. It can be used to run a WebView in background without attaching an InAppWebView to the widget tree.

NOTE: Remember to dispose it when you don't need it anymore.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • Web
  • MacOS

Implementation

HeadlessInAppWebView.fromPlatformCreationParams({
  required PlatformHeadlessInAppWebViewCreationParams params,
}) : this.fromPlatform(platform: PlatformHeadlessInAppWebView(params));