getConnectionBounds method
Gets the bounding rectangle for a connection.
Returns null if the connection doesn't exist or its nodes are missing.
Example:
final bounds = controller.getConnectionBounds('conn1');
if (bounds != null) {
print('Connection bounds: $bounds');
}
Implementation
Rect? getConnectionBounds(String connectionId) {
final connection = getConnection(connectionId);
if (connection == null) return null;
return _calculateConnectionBounds(connection);
}