level property

int get level

The level of the RenderObject in the render tree.

Implementation

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