level property

int level

Returns the nesting level of this event.

Implementation

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