In Flutter, how to write a polling function for polling an API until a URL is returned?
In Flutter, I am trying to write a function that periodically calls an API until a URL is returned, then passes that URL to another function. How the API works is that on the first call, it responds with acknowledgement that a request is made. Then, after a period of time, it generates a URL that can be clicked to export files.