CookieContainer class

A container that holds a cookie and an uri that belongs to the cookie.

Annotations
  • @JsonSerializable()

Constructors

CookieContainer({required Uri uri, required String cookie})
Default constructor for CookieContainer.
CookieContainer.fromJson(Map<String, dynamic> json)
Alternate constructor that creates a CookieContainer from a json.
factory

Properties

The cookie for the URL in String format.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri ↔ Uri
The request URL.
getter/setter pair

Methods

fromJson(Map<String, dynamic> json) CookieContainer
Returns a value of the type you specify, deserialized from a JSON object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
toString() → String
A string representation of this object.
inherited

Operators

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