CookieManager class
A manager for cookies to maintain sessions across requests
Constructors
- CookieManager.new(SharedPreferences? _prefs)
- Creates a new CookieManager with the given shared preferences
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllCookies(
) → void - Clears all cookies
-
clearCookies(
String domain) → void - Clears cookies for a domain
-
extractCookiesFromResponse(
HttpClientResponse response) → List< Cookie> - Extracts cookies from a response
-
getCookieHeader(
String domain) → String - Gets a cookie header string for a domain
-
getCookies(
String domain) → List< Cookie> - Gets cookies for a domain
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
storeCookies(
String domain, List< Cookie> cookies) → void - Stores cookies from a response for a domain
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Future< CookieManager> - Factory constructor to create a CookieManager from shared preferences