clearCache method

Future<void> clearCache({
  1. String? method,
  2. Uri? url,
})

It clears the cache

Args: method (String): The HTTP method of the request. url (Uri): The URL to clear the cache for.

Implementation

Future<void> clearCache({
  String? method,
  Uri? url,
}) async {
  await _storage.clear(prefix: _getPrefixKeyCache(method: method, url: url));
}