PlatformWebViewCookieManagerCreationParams class

Object specifying creation parameters for creating a PlatformWebViewCookieManager.

Platform specific implementations can add additional fields by extending this class.

{@tool sample} This example demonstrates how to extend the PlatformWebViewCookieManagerCreationParams to provide additional platform specific parameters.

When extending PlatformWebViewCookieManagerCreationParams additional parameters should always accept null or have a default value to prevent breaking changes.

class WKWebViewCookieManagerCreationParams
    extends PlatformWebViewCookieManagerCreationParams {
  WKWebViewCookieManagerCreationParams._(
    // This parameter prevents breaking changes later.
    // ignore: avoid_unused_constructor_parameters
    PlatformWebViewCookieManagerCreationParams params, {
    this.uri,
  }) : super();

  factory WKWebViewCookieManagerCreationParams.fromPlatformWebViewCookieManagerCreationParams(
    PlatformWebViewCookieManagerCreationParams params, {
    Uri? uri,
  }) {
    return WKWebViewCookieManagerCreationParams._(params, uri: uri);
  }

  final Uri? uri;
}

{@end-tool}

Annotations

Constructors

PlatformWebViewCookieManagerCreationParams()
Used by the platform implementation to create a new PlatformWebViewCookieManagerDelegate.
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