match method

Future<Response?> match(
  1. dynamic request, [
  2. CacheOptions? options
])

Checks if a given Request is a key in any of the Cache objects that the CacheStorage object tracks and returns a Promise that resolves to that match.

Implementation

Future<Response?> match(dynamic /*Request|String*/ request,
        [CacheOptions? options]) =>
    promiseToFuture<Object?, Response?>(
        _callMethod(_delegate, 'match',
            [_wrapRequest(request), if (options != null) options]),
        (Object? j) => (j == null) ? null : Response._(j));