isCached method
Queries if any data associated with url
is cached.
Returns true if any data from or belong to the url
is cached, otherwise returns false.
Implementation
bool isCached(String url) {
if (caches.containsKey(url)) {
return true;
}
return _caches.values.any((element) => element.belongTo == url);
}