DefaultKeyGenerator class
Default implementation of KeyGenerator that creates cache keys by combining the HTTP method, URL, and request body.
This generator creates keys in the format: "METHOD|URL|ENCODED_BODY"
- Implemented types
Constructors
- DefaultKeyGenerator()
-
Creates a new default key generator.
const
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.
override
-
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