And then is use one by one step of code, store data in variable and then move to next . Example: If I click in follow button until data store in variable it continuously retrieve some data to store and not allow next function to run, and if one task is complete than move to another.4 Şub 2019
What is .then in Flutter?
await is to interrupt the process flow until the async method completes . then however does not interrupt the process flow. This means that the next instructions will be executed. But it allows you to execute the code when the asynchronous method completes.