createNode<T> method

EventNode<T> createNode<T>({
  1. required String address,
  2. T? currentData,
})

Creates the node for an address.

The address 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 address.

Implementation

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