isChannelTopicName static method

bool isChannelTopicName(
  1. String topicName
)

Figure out if the topic name belongs to a new channel

Implementation

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