void removeErrorListener(SendPort port)

Stop listening for uncaught errors from the isolate.

Requests for the isolate to not send uncaught errors on responsePort. If the isolate isn't expecting to send uncaught errors on responsePort, 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.

Closing the receive port at the end of the send port will not stop the isolate from sending uncaught errors, they are just going to be lost.

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

Source

external void removeErrorListener(SendPort port);