isNewGroupTopicName static method

bool isNewGroupTopicName(
  1. String topicName
)

Figure out if the topic name belongs to a new group

Implementation

static bool isNewGroupTopicName(String topicName) {
  var prefix = topicName.substring(0, 3);
  return (topicName is String) &&
      (prefix == topic_names.TOPIC_NEW ||
          prefix == topic_names.TOPIC_NEW_CHAN);
}