Here is a simple question. suppose that I have a very long loop to execute, It would be nice to keep the user informed about the progressing right? I would print for example the number of loops that have been executed so far and how many are remaining. The problem that I have is those output wouldn't be visualized until the the loop is finished, and thus there will be no point for them to be displayed. I'm sure that there is some method in dart that can some sort of a handler to the browser to execute tasks and events whenever I want to and keep running the loop. I'm new to dart, I hope that someone could answer this question. Thank you.
PS: If you don't know how to, you can give me any ideas of keywords that I can use to look for this particular feature in dart documentation, it will be very helpful.