void removeErrorListener(
SendPort port
)

Stop listening for uncaught errors through port.

WARNING: This method is experimental and not handled on every platform yet.

The port should be a port that is listening for errors through addErrorListener. This call requests that the isolate stops sending errors on the port.

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

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

Source

/**
 * Stop listening for uncaught errors through [port].
 *
 * WARNING: This method is experimental and not handled on every platform yet.
 *
 * The `port` should be a port that is listening for errors through
 * [addErrorListener]. This call requests that the isolate stops sending
 * errors on the port.
 *
 * If the same port has been passed via `addErrorListener` more than once,
 * only one call to `removeErrorListener` is needed to stop it from receiving
 * errors.
 *
 * Closing the receive port at the end of the send port will not stop the
 * isolate from sending errors, they are just going to be lost.
 */
external void removeErrorListener(SendPort port);