port property

SendPort get port

The port of the hub. Opened on the first call, in the main isolate.

Internal: DoxIsolate uses it. Apps do not call it.

Implementation

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