Chat constructor

Chat({
  1. Signer? signer,
  2. required String account,
  3. String? decryptedPgpPvtKey,
  4. String? pgpPublicKey,
  5. required void progressHook(
    1. ProgressHookType
    )?,
})

Implementation

Chat({
  Signer? signer,
  required String account,
  String? decryptedPgpPvtKey,
  String? pgpPublicKey,
  required this.progressHook,
}) {
  _signer = signer;
  _account = account;
  _decryptedPgpPvtKey = decryptedPgpPvtKey;

  _userAPI = UserAPI(account: account);
  group = GroupAPI(
      account: account,
      progressHook: progressHook,
      decryptedPgpPvtKey: _decryptedPgpPvtKey,
      pgpPublicKey: pgpPublicKey,
      signer: _signer);
}