In Navigator, we can use .then to call the function when the user returns to that screen.
There is no callback function in go_router.
For eg:
Navigator.push(context,MaterialPageRoute(builder: (context) => XyzScreen())).then((value) => _someFuncion());
There is no simple way to implement the above code using go_router.