PushStream constructor

PushStream({
  1. required PushStreamInitializeOptions options,
  2. required String account,
  3. required List<STREAM> listen,
  4. Signer? signer,
  5. String? decryptedPgpPvtKey,
  6. void progressHook(
    1. ProgressHookType
    )?,
})

Implementation

PushStream({
  required PushStreamInitializeOptions options,
  required String account,
  required List<STREAM> listen,
  Signer? signer,
  String? decryptedPgpPvtKey,
  void Function(ProgressHookType)? progressHook,
}) {
  _account = account;
  _options = options;
  _raw = options.raw;
  _listen = listen;
  _signer = signer;

  chatInstance = Chat(
    signer: signer,
    account: _account,
    decryptedPgpPvtKey: decryptedPgpPvtKey,
    progressHook: progressHook,
  );
}