depth property
int
get
depth
The distance between this node and the root node.
Implementation
int get depth => isRoot ? -1 : parent!.depth + 1;
The distance between this node and the root node.
int get depth => isRoot ? -1 : parent!.depth + 1;