delete method

  1. @override
Future<void> delete(
  1. String key, {
  2. bool staleOnly = false,
})

Removes the given key from store. staleOnly flag will remove it only if the key is expired (from maxStale).

Implementation

@override
Future<void> delete(String key, {bool staleOnly = false}) {
  return _db.dioCacheDao.deleteKey(key, staleOnly: staleOnly);
}