PortServer.forSendPort constructor

PortServer.forSendPort(
  1. SendPort port,
  2. Future<Object?> handle(
    1. Object? message
    )
)

Implementation

PortServer.forSendPort(SendPort port, this.handle) : replyPort = port {
  port.send(_InitMessage(_receivePort.sendPort));
  _init();
}