Home > Back-end >  Callback with Getx's Get.back method
Callback with Getx's Get.back method

Time:08-24

Good day everyone!

I would please like to know: What is the best way to get a callback when leaving a page while using Getx's Get.back()?

So far I have tried the WillPopScope widget and I have tried passing a function as an argument in the "result" parameter of the Get.back() method, but none worked. Maybe I just did something wrong?

At the end of the day what I would like to achieve is: Executing code when leaving the current page.

Thank you in advance for any help :)

CodePudding user response:

this will help you to pass data from second to first screen

Get.back(result: [
{"backValue": "one"}]);
  • Related