has method

Future<bool> has(
  1. String cacheName,
  2. String url
)

Check if URL is cached

Implementation

Future<bool> has(String cacheName, String url) async {
  try {
    final result = await _cacheHasJS(cacheName.toJS, url.toJS).toDart;
    return result.toDart;
  } catch (e) {
    debugPrint('[WebCacheInterop] ❌ has failed for $url: $e');
    return false;
  }
}