addSubscription method

void addSubscription(
  1. String topic
)

Adds a new subscription to the collection of subscriptions.

Implementation

void addSubscription(String topic) {
  subscriptions.add(topic);
}