matchAll method

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

Returns a Promise that resolves to an array of all matching responses in the Cache object.

Implementation

Future<List<Response>> matchAll(dynamic /*Request|String*/ request,
        [CacheOptions? options]) =>
    promiseToFuture<List, List<Response>>(
        _callMethod(_delegate, 'matchAll', [_wrapRequest(request), options]),
        (List list) => list
            .map<Response>((item) => Response._(item as Object))
            .toList());