// Checks the isWaitingForExitingDecision before calling the markFor methods.

if

exitingPageRoute

isWaitingForExitingDecision

exitingPageRoute

markForRemove

();

final

List

RouteTransitionRecord

pagelessRoutes

pageRouteToPagelessRoutes

exitingPageRoute

];

if

pagelessRoutes

!=

null

for

final

RouteTransitionRecord

pagelessRoute

in

pagelessRoutes

pagelessRoute

markForRemove

();

results

add

exitingPageRoute

);