Cookie class
Constructors
-
Cookie({required String name, required String value, required String domain, required bool hostOnly, required String path, required bool secure, required bool httpOnly, required SameSiteStatus sameSite, required bool session, double? expirationDate, required String storeId, CookiePartitionKey? partitionKey})
-
-
Cookie.fromJS(Cookie _wrapped)
-
Properties
-
domain
↔ String
-
The domain of the cookie (e.g. "www.google.com", "example.com").
getter/setter pair
-
expirationDate
↔ double?
-
The expiration date of the cookie as the number of seconds since the UNIX
epoch. Not provided for session cookies.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hostOnly
↔ bool
-
True if the cookie is a host-only cookie (i.e. a request's host must
exactly match the domain of the cookie).
getter/setter pair
-
httpOnly
↔ bool
-
True if the cookie is marked as HttpOnly (i.e. the cookie is inaccessible
to client-side scripts).
getter/setter pair
-
name
↔ String
-
The name of the cookie.
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.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sameSite
↔ SameSiteStatus
-
The cookie's same-site status (i.e. whether the cookie is sent with
cross-site requests).
getter/setter pair
-
secure
↔ bool
-
True if the cookie is marked as Secure (i.e. its scope is limited to
secure channels, typically HTTPS).
getter/setter pair
-
session
↔ bool
-
True if the cookie is a session cookie, as opposed to a persistent cookie
with an expiration date.
getter/setter pair
-
storeId
↔ String
-
The ID of the cookie store containing this cookie, as provided in
getAllCookieStores().
getter/setter pair
-
toJS
→ Cookie
-
no setter
-
value
↔ String
-
The value of the cookie.
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