trashItem method

Future<void> trashItem(
  1. String uuid,
  2. String type
)

Implementation

Future<void> trashItem(String uuid, String type) async {
  await cache.clearParentCache(uuid, type, api, crypto, masterKeys);
  final endpoint = type == 'folder' ? '/v3/dir/trash' : '/v3/file/trash';
  await api.post(endpoint, {'uuid': uuid});
  cache.clearPathCache();
}