flutter getx arguments

86

// Step: 1 : Sending data
Get.to(Second(), arguments: ["First data", "Second data"]);

// Step: 2 : Get data From first screen
var data = Get.arguments;

// Step 3 : Go back with result from seconde screen
Get.back(result: [{"backValue": "one"}]);

Comments

Submit
0 Comments