dynamic operator []=(String name, Object value)

Set a config, attribute, or child on this node.

Source

operator []=(String name, Object value) {
  if (name.startsWith(r"$")) {
    configs[name] = value;
  } else if (name.startsWith(r"@")) {
    attributes[name] = value;
  } else if (value is Node) {
    addChild(name, value);
  }
}