Why do I receive Unhandled exception in Dart? I think to catch everything

Viewed 21

Why I read "Unhandled exception" in console for the "_udpSocket!.send" line?

Am I not catching all errors and exceptions?

try {
  _udpSocket!.send(_packet,_serverAddress!,Server_UdpPort);   //Send packet
} catch (exception,stack) {
  int _doNothing;
}
0 Answers
Related