*[<Null safety>](https://dart.dev/null-safety)*
- @override
int addNode (String name, Vnode node)
override
Adds a directory entry associating the given name
with node
.
It is ok to add the same Vnode multiple times with different names.
Returns ZX.OK
on success.
Returns ZX.ERR_INVALID_ARGS
if name is illegal object name.
Returns ZX.ERR_ALREADY_EXISTS
if there is already a node with the
given name.
Implementation
@override
int addNode(String name, Vnode node) {
if (_inheritedNodes.contains(name)) {
return ZX.ERR_ALREADY_EXISTS;
} else {
return super.addNode(name, node);
}
}