How can I pass some data back to Navigator when I close the page with iOS swipe back gesture? If I close the page manually, obviously everything works correctly, because when I close it, I call the Navigator.pop() method and pass the data in the arguments. But how do I do this when I go back with swipe gesture?
P.S. WillPopScope will not help, only relevant for Android.