Cookie class
Represents an HTTP Cookie.
Constructors
Properties
- domain → String?
-
The domain the cookie belongs to.
final
- expires → DateTime?
-
The expiry date of the cookie.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpOnly → bool
-
Whether the cookie is HTTP only (not accessible via JavaScript).
final
- maxAge → int?
-
The maximum age of the cookie in seconds.
final
- name → String
-
The name of the cookie.
final
- path → String?
-
The path the cookie belongs to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameSite → SameSite?
-
The SameSite policy for the cookie.
final
- secure → bool
-
Whether the cookie is secure (HTTPS only).
final
- value → String
-
The value of the cookie.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Formats the cookie as a Set-Cookie header value.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited