W3cubDocs

/Dart 2

RawReceivePort constructor

RawReceivePort([Function handler ])

Opens a long-lived port for receiving messages.

A RawReceivePort is low level and does not work with Zones. It can not be paused. The data-handler must be set before the first event is received.

Implementation

external factory RawReceivePort([Function handler]);

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