removeNodeDependency method

void removeNodeDependency(
  1. String annotationId,
  2. String nodeId
)

Implementation

void removeNodeDependency(String annotationId, String nodeId) {
  final annotation = _annotations[annotationId];
  if (annotation != null) {
    annotation.removeDependency(nodeId);

    // If this is a group, update its bounds immediately
    if (annotation is GroupAnnotation) {
      final dependentNodes = annotation.dependencies
          .map((id) => _parentController.nodes[id])
          .where((node) => node != null)
          .cast<Node<T>>()
          .toList();

      if (dependentNodes.isNotEmpty) {
        _updateGroupAnnotation(annotation, dependentNodes);
      }
    }
  }
}