level property

int get level

Returns the nesting level of this event.

Implementation

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