depth property

int depth
final

Navigator page count — how many routes are in the stack (GoRouter fills this via the pages API). 1 = at root, >1 = pushed screens above root.

Implementation

final int depth;