Cookie class

Cookie object

Constructors

Cookie.fromJson(Map<String, dynamic> json)
factory

Properties

domain String
Cookie domain.
final
expires num
Cookie expiration date as the number of seconds since the UNIX epoch.
final
hashCode int
The hash code for this object.
no setterinherited
httpOnly bool
True if cookie is http-only.
final
name String
Cookie name.
final
partitionKey String?
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
final
partitionKeyOpaque bool?
True if cookie partition key is opaque.
final
path String
Cookie path.
final
priority CookiePriority
Cookie Priority
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sameSite CookieSameSite?
Cookie SameSite type.
final
secure bool
True if cookie is secure.
final
session bool
True in case of session cookie.
final
size int
Cookie size.
final
sourcePort int
Cookie source port. Valid values are {-1, 1, 65535}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
final
sourceScheme CookieSourceScheme
Cookie source scheme type.
final
value String
Cookie value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited