CookieManager class abstract
Abstract cookie manager providing platform-specific cookie handling strategies.
This class serves two main purposes:
- Web platforms: Leverages native browser cookie handling
- Mobile platforms: Provides custom cookie management for libraries that don't support cookie embedding, with token-in-URL capability for backend collaboration
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- interceptor → Interceptor
-
Returns a Dio interceptor for automatic cookie handling.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsTokenInUrl → bool
-
Indicates whether this implementation supports token-in-URL functionality.
no setter
Methods
-
buildUrlWithToken(
String url) → String - Builds a URL with authentication token as query parameter.
-
deleteAllCookies(
) → void - Deletes all stored cookies across all URIs.
-
deleteCookies(
Uri uri) → void - Deletes all cookies for the specified URI.
-
getSingleCookie(
Uri uri, String name) → Cookie? - Retrieves a single cookie by name for the specified URI.
-
loadCookies(
Uri uri) → List< Cookie> - Loads all cookies for the specified URI.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveCookies(
Uri uri, List< Cookie> cookies) → void - Saves cookies for the specified URI.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited