close method

void close ()

Closes the receive port.

No further events will be received by the receive port, or emitted as stream events.

If listen has been called and the StreamSubscription has not been canceled yet, the subscription will be closed with a "done" event.

If the stream has already been canceled this method has no effect.

Implementation

void close();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-isolate/ReceivePort/close.html