On this page
RawReceivePort constructor
Opens a long-lived port for receiving messages.
A RawReceivePort is low level and does not work with Zones. It cannot be paused. The data-handler must be set before the first message is received, otherwise the message is lost.
If handler
is provided, it's set as the RawReceivePort.handler.
The optional debugName
parameter can be set to associate a name with this port that can be displayed in tooling.
Implementation
external factory RawReceivePort([Function? handler, String debugName = '']);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-isolate/RawReceivePort/RawReceivePort.html