PushAPI constructor
PushAPI({})
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,
);
}