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._(
// This parameter prevents breaking changes later.
// ignore: avoid_unused_constructor_parameters
PlatformWebViewControllerCreationParams params, {
this.domain,
}) : super();
factory WKWebViewControllerCreationParams.fromPlatformWebViewControllerCreationParams(
PlatformWebViewControllerCreationParams params, {
String? domain,
}) {
return WKWebViewControllerCreationParams._(params, domain: domain);
}
final String? domain;
}
- Annotations
Constructors
- PlatformWebViewControllerCreationParams.new()
-
Used by the platform implementation to create a new
PlatformWebViewController
.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
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