WebSettings class

Settings for configuring a WebViewPlatform.

Initial settings are passed as part of CreationParams, settings updates are sent with WebViewPlatform#updateSettings.

The userAgent parameter must not be null.

Constructors

WebSettings({JavascriptMode? javascriptMode, bool? hasNavigationDelegate, bool? debuggingEnabled, bool? gestureNavigationEnabled, required WebSetting<String> userAgent})
Construct an instance with initial settings. Future setting changes can be sent with WebviewPlatform#updateSettings.

Properties

debuggingEnabled bool?
Whether to enable the platform's webview content debugging tools.
final
gestureNavigationEnabled bool?
Whether to allow swipe based navigation in iOS.
final
hashCode int
The hash code for this object.
no setterinherited
hasNavigationDelegate bool?
Whether the WebView has a NavigationDelegate set.
final
javascriptMode JavascriptMode?
The JavaScript execution mode to be used by the webview.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent WebSetting<String>
The value used for the HTTP User-Agent: request header.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited