List

RouteTransitionRecord

results

RouteTransitionRecord

>[];

for

final

RouteTransitionRecord

pageRoute

in

newPageRouteHistory

// Renames isEntering to isWaitingForEnteringDecision.

if

pageRoute

isWaitingForEnteringDecision

pageRoute

markForAdd

();

results

add

pageRoute

);

for

final

RouteTransitionRecord

exitingPageRoute

in

locationToExitingPageRoute

values

// Checks the isWaitingForExitingDecision before calling the markFor methods.