PushAPI constructor

PushAPI({
  1. Signer? signer,
  2. required String account,
  3. String? decryptedPgpPvtKey,
  4. String? pgpPublicKey,
  5. void progressHook(
    1. ProgressHookType
    )?,
  6. bool readMode = false,
  7. ENV env = ENV.prod,
  8. bool showHttpLog = false,
})

Implementation

PushAPI({
  Signer? signer,
  required String account,
  String? decryptedPgpPvtKey,
  this.pgpPublicKey,
  this.progressHook,
  this.readMode = false,
  ENV env = ENV.prod,
  bool showHttpLog = false,
}) {
  _signer = signer;
  _account = account;
  _decryptedPgpPvtKey = decryptedPgpPvtKey;

  initPush(
    env: env,
    showHttpLog: showHttpLog,
  );

  chat = Chat(
    signer: _signer,
    account: _account,
    decryptedPgpPvtKey: _decryptedPgpPvtKey,
    pgpPublicKey: pgpPublicKey,
    progressHook: progressHook,
  );
}