KeyGenerator class abstract
Interface for cache key generation strategies.
Implementations of this class are responsible for generating unique cache keys based on the HTTP request parameters (method, URL, and body).
- Implementers
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
-
generateKey(
{required REQUEST_METHODS method, required Uri url, Object? body}) → String - Generates a unique cache key for a specific HTTP request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited