ReceivePort constructor
- [String debugName = '']
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.
The optional debugName
parameter can be set to associate a name with this port that can be displayed in tooling.
A receive port is closed by canceling its subscription.
Implementation
external factory ReceivePort([String debugName = '']);
© 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/ReceivePort.html