execute method
Implementation
Future<CommandResult> execute(
String executable,
List<String> arguments, {
String? workingDirectory,
}) {
assert(isReady, 'IsolateRunner.init() must be called before execute()');
final id = _nextId++;
final completer = Completer<CommandResult>();
_pending[id] = completer;
_sendPort!.send(
IsolateRequest(
id: id,
command: IsolateCommand.runCommand,
executable: executable,
arguments: arguments,
workingDirectory: workingDirectory,
),
);
return completer.future;
}