submenuDepth property

int get submenuDepth

How many submenus deep the open menu currently is (0 = root list).

Implementation

int get submenuDepth => _state?._submenuStack.length ?? 0;