depth property Null safety
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;
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.
int get depth => (_parent?.depth ?? -1) + 1;