screen

drawerScreen

}));

In Flutter, there are two main widgets used to navigate between screens:

A Route is an abstraction for an app screen or page.

A Navigator is a widget that manages routes.

Navigator.push and

Navigator.pop.
A list of routes might be specified in the

MaterialApp widget,
or they might be built on the fly, for example, in hero animations.
The following example specifies named routes in the

Note:
  Named routes are no longer recommended for most
  applications. For more information, see
  Limitations in the navigation overview page.

To navigate to a named route, the Navigator.of()
method is used to specify the BuildContext
(a handle to the location of a widget in the widget tree).
The name of the route is passed to the pushNamed function to
navigate to the specified route.