Dart DocumentationdartscaleMediatorChannel

MediatorChannel class

Represents a channel in the messagebus of the Mediator, hosting a set of MediatorTopic which represent the topics in this channel.

class MediatorChannel {
 
 var _topics = new Map<String, MediatorTopic>();
 
 MediatorTopic topic(String topicName) {
   MediatorTopic topic = _topics[topicName];
   if (topic == null) {
     topic = new MediatorTopic();
     _topics[topicName] = topic;
   }
   
   return topic;
 }
}

Methods

MediatorTopic topic(String topicName) #

MediatorTopic topic(String topicName) {
 MediatorTopic topic = _topics[topicName];
 if (topic == null) {
   topic = new MediatorTopic();
   _topics[topicName] = topic;
 }
 
 return topic;
}