remove method

Future<void> remove(
  1. FileCollection collection, {
  2. String key = '',
})

Remove from this cache all files and directories in the given collection.

Implementation

Future<void> remove(FileCollection collection, {String key = ''}) async {
  await for (final entry in collection.resolve()) {
    await _removeEntity(entry.entity, key: key);
  }
}