Returns the depth if PlutoRow is a child of a group row.
int get depth { int depth = 0; var current = parent; while (current != null) { depth += 1; current = current.parent; } return depth; }