connect method
Use the hub hub (a port of the main isolate) from now on.
id is the id of this isolate. null hub: this is the main isolate.
Internal: the isolate start code calls it. Apps do not call it.
Implementation
void connect(SendPort? hub, int id) {
_hub = hub;
_id = id;
}