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 unaught errors.

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

Source

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/1.24.3/dart-isolate/Isolate/removeErrorListener.html