depth property Null safety

int depth

The depth of this group.

If this group is a root group, the depth will be 0. If not, it will be the number of ancestors this group has.

Implementation

int get depth => (_parent?.depth ?? -1) + 1;