Create a detail screen to extract the arguments

Next, create a detail screen that extracts and displays the title and description from the Todo. To access the Todo, use the ModalRoute.of() method. This method returns the current route with the arguments.

Navigate and pass the arguments to the detail screen

Finally, navigate to the DetailScreen when a user taps
a ListTile widget using Navigator.push().
Pass the arguments as part of the RouteSettings.
The DetailScreen extracts these arguments.

Complete example

Return data from a screen

Delete data on the internet