CookieManager class
Constructors
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 - Clear all cookies in storage
-
clearCookie(
String url) → void - Clear all cookies for a specific URL
-
getCookies(
String url) → List< Cookie> - Get all cookies for a URL
-
getCookieString(
String url) → String - Get all cookies as string for a URL
-
initialize(
{String? url, List< Cookie> ? initialCookies}) → Future<void> - Initialize cookie jar with initial cookies if needed
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCookie(
String url, Cookie cookie) → void - Set cookie for a specific URL
-
setCookies(
String url, List< Cookie> cookies) → void - Set multiple cookies for a URL
-
setCookieString(
String url, String value) → void - Set cookie for a specific URL from a set-cookie string
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
afterCookieJarLoaded(
PersistCookieJar cookieJar, {Uri? uri, List< Cookie> ? initialCookies}) → Future<PersistCookieJar> -
initCookieFromStorage(
) → Future< PersistCookieJar> -
loadForRequest(
Uri uri, List< Cookie> requestCookies) → Future<void> -
saveFromResponse(
Uri uri, List< Cookie> cookies) → Future<void> -
saveFromResponseRaw(
Uri uri, List< String> ? cookieStr) → Future<void>