CookieDetails constructor

CookieDetails({
  1. required String url,
  2. required String name,
  3. String? storeId,
  4. CookiePartitionKey? partitionKey,
})

Implementation

CookieDetails({
  /// The URL with which the cookie to access is associated. This argument may
  /// be a full URL, in which case any data following the URL path (e.g. the
  /// query string) is simply ignored. If host permissions for this URL are
  /// not specified in the manifest file, the API call will fail.
  required String url,

  /// The name of the cookie to access.
  required String name,

  /// The ID of the cookie store in which to look for the cookie. By default,
  /// the current execution context's cookie store will be used.
  String? storeId,

  /// The partition key for reading or modifying cookies with the Partitioned
  /// attribute.
  CookiePartitionKey? partitionKey,
}) : _wrapped = $js.CookieDetails(
        url: url,
        name: name,
        storeId: storeId,
        partitionKey: partitionKey?.toJS,
      );