currentRoute property

RouteSnapshot get currentRoute

The top managed page of this instance, even while guarded or dialog-covered. Independent child routers and pageless routes are not included.

Implementation

RouteSnapshot get currentRoute => _snapshot(_entries.last);