close method

void close()

Closes the port on the isolate. Good practice to call, otherwise the port will eventually close on it's own when this goes out of scope. Calling may result in the port closing before previous send operations have succeeded.

Implementation

void close() => _sPort.send(const _CloseSignal());