Cloud Stack Ninja

I am implementing an app that I should handle offline mode. When I check the internet connection and it is not connected, I should add the API request to a queue to be executed when the internet connection is back again.

How can I do that?

I tried to add class names and the method names to the queue, but couldn't call the method from a class dynamically.

I am using Dio package to handle API requests.

Read more here:

Content Attribution

This content was originally published by Amani Elsaed at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: