getNodeByID<T extends BaseNode> method
Implementation
T getNodeByID<T extends BaseNode>(String id) {
final node = _registry[id];
if (node == null) {
throw Exception('Node with id $id not found');
}
return node as T;
}