If you want to register the widget in the routes table in Flutter? Add an entry to the routes provided to the MaterialApp widget. The routes define which widget should be created based on the name of the route.
Here is an example:
ExtractArgumentsScreen.routeName: (context) => ExtractArgumentsScreen(),
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.