PubNub constructor

PubNub({
  1. Keyset? defaultKeyset,
  2. INetworkingModule? networking,
  3. IParserModule? parser,
  4. ICryptoModule? crypto,
})

Implementation

PubNub(
    {Keyset? defaultKeyset,
    INetworkingModule? networking,
    IParserModule? parser,
    ICryptoModule? crypto})
    : super(
          defaultKeyset: defaultKeyset,
          networking: networking ?? NetworkingModule(),
          parser: parser ?? ParserModule(),
          crypto: crypto ??
              (defaultKeyset?.cipherKey != null
                  ? CryptoModule.legacyCryptoModule(defaultKeyset!.cipherKey!)
                  : LegacyCryptoModule())) {
  batch = BatchDx(this);
  channelGroups = ChannelGroupDx(this);
  objects = ObjectsDx(this);
  files = FileDx(this);
}