getCompleteNode method

Node? getCompleteNode(
  1. Path path
)

The complete node at path if a write covers it, or null.

Implementation

Node? getCompleteNode(Path path) {
  final PathAndValue<Node>? rootMost = writeTree.findRootMostValueAndPath(
    path,
  );
  if (rootMost == null) {
    return null;
  }
  return ChildrenNode.storedChild(
    rootMost.value,
    Path.relative(rootMost.path, path),
  );
}