RealRoute

setting

);

There are different ways to migrate this change.
One way is to set the initial route name
to a fixed value and generate a specific route
(FakeSplashRoute in the above example)
for the route name.

MaterialApp

initialRouteName:

fakeSplash

onGenerateRoute:

RouteSetting

setting

if

setting

name

==

fakeSplash

return

FakeSplashRoute

();

else

return

RealRoute

setting

);

If there is a more complicated use case,
you can use the new API, onGenerateInitialRoutes,
in MaterialApp or CupertinoApp.

MaterialApp