depth property

int depth

Returns the depth if PlutoRow is a child of a group row.

Implementation

int get depth {
  int depth = 0;
  var current = parent;
  while (current != null) {
    depth += 1;
    current = current.parent;
  }
  return depth;
}