'How to call functions after previous function is completed in Flutter?
onPressed: () => {
popUpForGroup("Add Group", null, context),
print("pop up closed"),
refreshPage(),
},
Here all three functions run at the same time. I want to execute the refreshPage() function only when the popUpForGroup() execution ends. popUpForGroup() is a function from another file, it displays a Dialogue box for adding a group to the database, and I wanted to refresh my current file( where I call the onpressed function)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
