1, The Navigator’s pushName() method ends up calling its state object pushName() method
The _routeNamed method in the red box is used to create a named route
Analyze the method:
This method does two things: first, construct RouteSettings objects, and second, call widgetApps’ _onGenerateRoute method to generate a route,
WidgetsApp’s method eventually calls the materialApp onGenerateRoute callback method to generate the route