depth property

int get depth

Depth of nesting (0 = interactive root).

Implementation

int get depth => _stack.length - 1;