updateNode method

  1. @override
void updateNode(
  1. Node newNode
)
override

Replaces the Node this stream publishes as.

Call recreateOutlet afterwards for the change to reach the network.

Implementation

@override
void updateNode(Node newNode) {
  if (newNode.uId != streamNode.uId) {
    throw ArgumentError('newNode must have the same uId');
  }
  setStreamNode(newNode);
}