isCached method

bool isCached(
  1. String? url
)

Returns true if url is already cached in memory.

Implementation

bool isCached(String? url) {
  if (url == null || url.trim().isEmpty) return false;
  return _memoryCache.containsKey(url.trim());
}