update method

bool update(
  1. Path path,
  2. Attributes attributes
)

Updates the NodeV0 at the given Path

Implementation

bool update(Path path, Attributes attributes) {
  if (path.isEmpty) {
    return false;
  }
  final target = nodeAtPath(path);
  if (target == null) {
    return false;
  }
  target.updateAttributes(attributes);
  return true;
}