SetDetails class

Constructors

SetDetails({required String url, String? name, String? value, String? domain, String? path, bool? secure, bool? httpOnly, SameSiteStatus? sameSite, double? expirationDate, String? storeId, CookiePartitionKey? partitionKey})
SetDetails.fromJS(SetDetails _wrapped)

Properties

domain ↔ String?
The domain of the cookie. If omitted, the cookie becomes a host-only cookie.
getter/setter pair
expirationDate ↔ double?
The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
httpOnly ↔ bool?
Whether the cookie should be marked as HttpOnly. Defaults to false.
getter/setter pair
name ↔ String?
The name of the cookie. Empty by default if omitted.
getter/setter pair
partitionKey ↔ CookiePartitionKey?
The partition key for reading or modifying cookies with the Partitioned attribute.
getter/setter pair
path ↔ String?
The path of the cookie. Defaults to the path portion of the url parameter.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sameSite ↔ SameSiteStatus?
The cookie's same-site status. Defaults to "unspecified", i.e., if omitted, the cookie is set without specifying a SameSite attribute.
getter/setter pair
secure ↔ bool?
Whether the cookie should be marked as Secure. Defaults to false.
getter/setter pair
storeId ↔ String?
The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
getter/setter pair
toJS → SetDetails
no setter
url ↔ String
The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. If host permissions for this URL are not specified in the manifest file, the API call will fail.
getter/setter pair
value ↔ String?
The value of the cookie. Empty by default if omitted.
getter/setter pair

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