ReceivePort factory constructor
ReceivePort(Opens a long-lived port for receiving messages.
A ReceivePort is a non-broadcast stream. This means that it buffers incoming messages until a listener is registered. Only one listener can receive messages. See Stream.asBroadcastStream for transforming the port to a broadcast stream.
A receive port is closed by canceling its subscription.
Source
external factory ReceivePort();
© 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/ReceivePort/ReceivePort.html