1

Hi everyone

How can detect when an endpoint is not available in dart?

So that i can tell the user that he is offline and load the offline mode

Comments
  • 0
    Perhaps non-http connection errors?
  • 0
    I'd you try catch the request itself and maybe add a timeout you should be able to see when the issue is the lack of connectivity
Add Comment