CookieContainer class Null safety

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.
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
uri ↔ Uri
The request URL.
read / write

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 non-existent 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