Topic constructor

Topic(
  1. String name, {
  2. ResourcesClient? client,
  3. SubscriberClient? subscriberClient,
})

Implementation

Topic(String name,
    {$p.ResourcesClient? client, $tp.SubscriberClient? subscriberClient})
    : super(name, client) {
  _subscriberClient = subscriberClient;

  if (subscriberClient == null) {
    _subscriberClient =
        $tp.SubscriberClient(ClientChannelSingleton.instance.clientChannel);
  } else {
    _subscriberClient = subscriberClient;
  }
}