ReceivePort constructor Null safety
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.
Implementation
external factory ReceivePort();