createTopicDestination static method

String createTopicDestination(
  1. String topic
)

Creates a topic destination

Implementation

static String createTopicDestination(String topic) {
  if (!topic.startsWith('/')) {
    return '/topic/$topic';
  }
  return topic;
}