depth property

int depth

Implementation

int get depth {
  int depth = 0;
  BubbleNode? dparent = parent;
  while (dparent != null) {
    dparent = dparent.parent;
    depth++;
  }
  return depth;
}