addDependency method

void addDependency(
  1. String nodeId
)

Adds a node dependency to this annotation.

For group annotations, the node will be contained within the group. For following annotations, the annotation will track the node's position.

Implementation

void addDependency(String nodeId) {
  _dependencies.add(nodeId);
}