Looks up the route with the given name using Navigator.onGenerateRoute, and then pushes that route.
Returns a Future that completes when the pushed route is popped.
Source
Future<dynamic> pushNamed(String name) { assert(!_debugLocked); assert(name != null); RouteSettings settings = new RouteSettings(name: name); Route<dynamic> route = config.onGenerateRoute(settings); if (route == null) { assert(config.onUnknownRoute != null); route = config.onUnknownRoute(settings); assert(route != null); } return push(route); }