collapsePortThrough method

bool collapsePortThrough(
  1. String nodeId,
  2. String portId
)

Collapse the children and edges that expandPortThrough would reveal.

Returns true if any children/edges were removed. For detailed removal info (to recover focus), use collapsePortThroughWithRemoved.

Implementation

bool collapsePortThrough(String nodeId, String portId) {
  final (changed, _) = collapsePortThroughWithRemoved(nodeId, portId);
  return changed;
}