// create one
ReceivePort receivePort = ReceivePort();
// receive messages via
await for(var message in receivePort) {
print(message);
}
Spawn an Isolate
// the isolate main function must be static
// the second arg is the arg for that main function
// you can send a object list including the send port
Isolate.spawn(isolateMain, receivePort.sendPort);
Send Port
// send a message
// note the send port was created when yo made the receive port
sendPort.send(receivePort.sendPort);