Keyset constructor

Keyset({
  1. @Deprecated('Use `userId` instead') UUID? uuid,
  2. UserId? userId,
  3. required String subscribeKey,
  4. String? publishKey,
  5. String? secretKey,
  6. String? authKey,
  7. @Deprecated('Use `cipherKey` at CryptoModule') CipherKey? cipherKey,
})

Implementation

Keyset({
  @Deprecated('Use `userId` instead') UUID? uuid,
  UserId? userId,
  required this.subscribeKey,
  this.publishKey,
  this.secretKey,
  this.authKey,
  @Deprecated('Use `cipherKey` at CryptoModule') this.cipherKey,
})  : assert((uuid == null) ^ (userId == null)),
      uuid = userId != null ? UUID(userId.value) : uuid!;