one

route

after

pop

);

else

print

Oops

No

more

routes

);

// Our navigator pops the route anyway.

Navigator

pop

context

);

Case 2: An app generates routes based on isInitialRoute.

MaterialApp

onGenerateRoute:

RouteSetting

setting

if

setting

isInitialRoute

return

FakeSplashRoute

();

else

return

RealRoute

setting

);