createPlatformWebViewControllerCreationParams static method

PlatformWebViewControllerCreationParams createPlatformWebViewControllerCreationParams()

Creates the parameters for the webview controller

Implementation

static PlatformWebViewControllerCreationParams
    createPlatformWebViewControllerCreationParams() {
  late PlatformWebViewControllerCreationParams
      webKitWebViewControllerCreationParams;

  if (WebViewPlatform.instance is WebKitWebViewPlatform) {
    webKitWebViewControllerCreationParams =
        WebKitWebViewControllerCreationParams(
      allowsInlineMediaPlayback: true,
    );
  } else {
    webKitWebViewControllerCreationParams =
        const PlatformWebViewControllerCreationParams();
  }
  return webKitWebViewControllerCreationParams;
}