title: How Catch error : conection timed out, socketException in Flutter
body: <p>Hi I tried to catch a socketException when the server I am consulting is not available,  I tried with try{}catch{}, catchError and timeout, but it doesn't work</p>
  <p>I need that if some time passes that the server does not respond, that it already stops waiting for it</p>
  <p>The error is :</p>
  <p><a href="https://i.stack.imgur.com/Xzh1a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xzh1a.png" alt="enter image description here" /></a></p>
  <p>and I tried something like this</p>
  <p><a href="https://i.stack.imgur.com/MxqdN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MxqdN.png" alt="enter image description here" /></a></p>