I currently have the route
Navigator.pop(context,"/second");
However, I need to pass the argument contact. I know this works fine with arguments: for popAndPushNamed, but I'm not sure how to do it for pop/popUntil etc.
Contact contact = ModalRoute.of(context).settings.arguments;
The code is on an edit page. On the onPress, it directs back to the previous page showing the updated document fields.