getDependencies method

List<String> getDependencies(
  1. String nodeId
)

Finds all components that the given node ID depends on.

Implementation

List<String> getDependencies(String nodeId) {
  return edges.where((e) => e.fromId == nodeId).map((e) => e.toId).toList();
}