WebSettings class Null safety

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? hasProgressTracking, bool? debuggingEnabled, bool? gestureNavigationEnabled, bool? allowsInlineMediaPlayback, required WebSetting<String?> userAgent})
Construct an instance with initial settings. Future setting changes can be sent with WebviewPlatform#updateSettings. [...]

Properties

allowsInlineMediaPlayback bool?
Whether to play HTML5 videos inline or use the native full-screen controller on iOS. [...]
final
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. [...]
read-only, inherited
hasNavigationDelegate bool?
Whether the WebView has a NavigationDelegate set.
final
hasProgressTracking bool?
Whether the WebView should track page loading progress. See also: WebViewPlatformCallbacksHandler.onProgress to get the progress.
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.
read-only, inherited
userAgent WebSetting<String?>
The value used for the HTTP User-Agent: request header. [...]
final

Methods

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

Operators

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