setSettings method

Future<void> setSettings({
  1. required InAppWebViewSettings settings,
})

Sets the WebView settings with the new settings and evaluates them.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • Linux WPE WebKit
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2

Parameters - Officially Supported Platforms/Implementations:

  • settings: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> setSettings({required InAppWebViewSettings settings}) =>
    platform.setSettings(settings: settings);