Source
WorkerSocket.worker(SendPort port) : _sendPort = port, receiver = new ReceivePort(), isWorker = true { _sendPort.send({"t": "send_port", "port": receiver.sendPort}); receiver.listen(handleData); }
WorkerSocket.worker(SendPort port) : _sendPort = port, receiver = new ReceivePort(), isWorker = true { _sendPort.send({"t": "send_port", "port": receiver.sendPort}); receiver.listen(handleData); }