IsolateRunner constructor
Create an IsolateRunner wrapper for isolate
The preferred way to create an IsolateRunner
is to use spawn
to create a new isolate and a runner for it.
This constructor allows creating a runner for an already existing
isolate.
The commandPort
must be the IsolateRunnerRemote.commandPort of
a remote running in that isolate.
Implementation
IsolateRunner(this.isolate, SendPort commandPort)
: _commandPort = commandPort;