in

locationToExitingPageRoute

values

exitingPageRoute

markForRemove

();

final

List

RouteTransitionRecord

pagelessRoutes

pageRouteToPagelessRoutes

exitingPageRoute

];

if

pagelessRoutes

!=

null

for

final

RouteTransitionRecord

pagelessRoute

in

pagelessRoutes

pagelessRoute

markForRemove

();

results

add

exitingPageRoute

);

return

results

Code after migration:

import