findWithoutDelegations method

Future<List<DecryptedDocumentDto>> findWithoutDelegations(
  1. UserDto user,
  2. int? limit,
  3. CryptoConfig<DecryptedDocumentDto, DocumentDto> config
)

Implementation

Future<List<DecryptedDocumentDto>> findWithoutDelegations(UserDto user, int? limit, CryptoConfig<DecryptedDocumentDto, DocumentDto> config) async {
  return Future.wait(
      (await this.rawFindWithoutDelegation(limit: limit))!
          .map((it) => config.decryptDocument(user.dataOwnerId()!, it))
  );
}