delete method

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

Finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true. If no Cache entry is found, it returns false.

Implementation

Future<bool> delete(dynamic /*Request|String*/ request,
        [CacheOptions? options]) =>
    promiseToFuture(
        _callMethod(_delegate, 'delete', [_wrapRequest(request), options]));