makeNode method
ProgramInfoNode
makeNode({
- required String name,
- required ProgramInfoNode parent,
- required NodeType type,
Implementation
ProgramInfoNode makeNode(
{required String name,
required ProgramInfoNode parent,
required NodeType type}) {
return parent.children.putIfAbsent(
name,
() => ProgramInfoNode._(
id: _nextId++, name: name, parent: parent, type: type));
}