findContactsByExternalId method

Future<List<DecryptedContactDto>> findContactsByExternalId(
  1. UserDto user,
  2. String externalId,
  3. CryptoConfig<DecryptedContactDto, ContactDto> config
)

Implementation

Future<List<DecryptedContactDto>> findContactsByExternalId(
    UserDto user, String externalId, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
  return Future.wait((await this.rawListContactsByExternalId(externalId))!.map((it) => config.decryptContact(user.dataOwnerId()!, it)));
}