match method

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

Returns a Promise that resolves to the response associated with the first matching request in the Cache object.

Implementation

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