routeStack property

List<String> get routeStack

Names of routes currently on the navigator stack, oldest first. A name appears once per time it's on the stack, so A → B → A lists [A, B, A].

Implementation

static List<String> get routeStack =>
    List.unmodifiable(_openRoutes.map((r) => r.name));