Cookie class

Class that represents a cookie returned by the PlatformCookieManager.

Constructors

Properties

domain String?
The cookie domain.
getter/setter pair
expiresDate int?
The cookie expiration date in milliseconds.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isHttpOnly bool?
Indicates if the cookie is a http only cookie.
getter/setter pair
isSecure bool?
Indicates if the cookie is secure or not.
getter/setter pair
isSessionOnly bool?
Indicates if the cookie is a session only cookie.
getter/setter pair
name String
The cookie name.
getter/setter pair
path String?
The cookie path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sameSite HTTPCookieSameSitePolicy?
The cookie same site policy.
getter/setter pair
value ↔ dynamic
The cookie value.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) Cookie?
Gets a possible Cookie instance from a Map value.