setSettings method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), LinuxPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform()])
- 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
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
LinuxPlatform(),
MacOSPlatform(),
WebPlatform(),
WindowsPlatform(),
],
)
Future<void> setSettings({required InAppWebViewSettings settings}) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setSettings.name} is not implemented on the current platform',
);
}