MaterialApp

onGenerateRoute:

RouteSetting

setting

return

RealRoute

setting

);

},

onGenerateInitialRoutes:

String

initialRouteName

return

Route

>[

FakeSplashRoute

()];

Timeline

Landed in version: 1.16.3
In stable release: 1.17

References

Design doc:

Router

API documentation:

Route

Route.install

RouteSetting.isInitialRoute

Navigator

Navigator.pop

Navigator.canPop

Relevant issue: