findNodeByKey method

DartBlockValueTreeNode? findNodeByKey(
  1. String key
)

Find a specific by its key. Note that non-leaf nodes need to override this implementation such that they properly call the same findNodeByKey function on their child nodes.

Implementation

DartBlockValueTreeNode? findNodeByKey(String key) {
  return key == nodeKey ? this : null;
}