depth property

int get depth

The number of groups the step is in

Implementation

int get depth => parent == null ? 0 : parent!.depth + 1;