W3cubDocs

/Dart 2

removeErrorListener method

void removeErrorListener (SendPort port)

Stops listening for uncaught errors from the isolate.

Requests for the isolate to not send uncaught errors on port. If the isolate isn't expecting to send uncaught errors on port, because the port hasn't been added using addErrorListener, or because it has already been removed, the request is ignored.

If the same port has been passed via addErrorListener more than once, only one call to removeErrorListener is needed to stop it from receiving uncaught errors.

Uncaught errors message may still be sent by the isolate until this request is received and processed.

Implementation

external void removeErrorListener(SendPort port);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-isolate/Isolate/removeErrorListener.html