PlatformWebViewControllerCreationParams class
Object specifying creation parameters for creating a PlatformWebViewController.
Platform specific implementations can add additional fields by extending this class.
This example demonstrates how to extend the PlatformWebViewControllerCreationParams to provide additional platform specific parameters.
When extending PlatformWebViewControllerCreationParams additional parameters
should always accept null or have a default value to prevent breaking
changes.
class WKWebViewControllerCreationParams
extends PlatformWebViewControllerCreationParams {
WKWebViewControllerCreationParams._(
PlatformWebViewControllerCreationParams params, {
this.domain,
}) : super.fromPlatformWebViewControllerCreationParams(params);
factory WKWebViewControllerCreationParams.fromPlatformWebViewControllerCreationParams(
PlatformWebViewControllerCreationParams params, {
String? domain,
}) {
return WKWebViewControllerCreationParams._(params, domain: domain);
}
final String? domain;
}
- Annotations
Constructors
- PlatformWebViewControllerCreationParams({WebViewSessionMode sessionMode = WebViewSessionMode.shared})
-
Used by the platform implementation to create a new
PlatformWebViewController.const - PlatformWebViewControllerCreationParams.fromPlatformWebViewControllerCreationParams(PlatformWebViewControllerCreationParams params, {WebViewSessionMode? sessionMode})
-
Preserves generic policies in const platform-specific converters.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionMode → WebViewSessionMode
-
Immutable website-data policy. Unsupported modes must never fall back to
an ordinary profile, because that could expose existing login state.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited