createNode<T> method

EventNode<T> createNode<T>({
  1. required Topic topic,
  2. T? currentData,
})
inherited

Creates the node for a topic.

The topic is part of the node's identity: a transport bus overrides this method and returns a node that publishes to and listens from its broker. The default node is local-only and ignores the topic.

Implementation

EventNode<T> createNode<T>({
  required Topic topic,
  T? currentData,
}) {
  return EventNode<T>.create(currentData: currentData);
}