path property
String
get
path
Path of the node in the tree. It provides information about the node hierarchy by listing all the ancestors of the node.
A typical path starts with a ROOT_KEY (/) and separates each ancestor key using PATH_SEPARATOR (.). For example for a node with key <#key123> and ancestors <#parent_1>, <#grand_parent_2>, the path will be /.#grand_parent_2.#parent_1
Implementation
String get path =>
parent == null ? key : "${parent!.path}${INode.PATH_SEPARATOR}$key";