Subscriber constructor

Subscriber({
  1. required IRelayer relayer,
  2. Logger? logger,
})

Implementation

Subscriber({
  required this.relayer,
  Logger? logger,
})  : subscriptions = {},
      topicMap = SubscriberTopicMap(),
      name = SUBSCRIBER_CONTEXT,
      version = SUBSCRIBER_STORAGE_VERSION,
      pending = {},
      events = EventEmitter(),
      logger = logger ?? Logger(),
      _cached = [],
      _initialized = false;