DEV Community

Discussion on: Flutter: Advance Routing and Navigator Part 1

Collapse
 
hsct profile image
HSCT

Can you show me how to add a route to a screen that has @required key?
For examples: I have 2 screens, FirstScreen() and SecondScreen(). The SecondScreen() has 2 @required variables that is passed from the FirstScreen(). How do I define the route to the SecondScreen() in main(){}?