addDependency method

void addDependency(
  1. String fromPath,
  2. String toPath
)

Implementation

void addDependency(String fromPath, String toPath) {
  _nodes.add(fromPath);
  _nodes.add(toPath);
  _imports.putIfAbsent(fromPath, () => {}).add(toPath);
  _importedBy.putIfAbsent(toPath, () => {}).add(fromPath);
}