port property

SendPort get port

The port other isolates send their increments to. Opened on the first call, in the isolate that owns the counts (the main isolate).

Implementation

SendPort get port {
  ReceivePort server = _server ??= ReceivePort()..listen(_serve);
  return server.sendPort;
}