topMostRouter method

RoutingController topMostRouter({
  1. bool ignorePagelessRoutes = false,
})

Finds the router with top-most visible page

if ignorePagelessRoutes is true pageless routes will be ignored

What is a (PagelessRoute)? Route that does not correspond to a Page object is called a pageless route and is tied to the Route that does correspond to a Page object that is below it in the history.

Implementation

RoutingController topMostRouter({bool ignorePagelessRoutes = false}) {
  return root._topMostRouter(ignorePagelessRoutes: ignorePagelessRoutes);
}