copyFrom method
Copy the state of another DartBlockExecutor into this one.
This includes its console output, environment and any potentially thrown exception.
Implementation
void copyFrom(DartBlockExecutor executor) {
_consoleOutput.clear();
_consoleOutput.addAll(executor.consoleOutput);
environment.copyFrom(executor.environment);
_currentStatementBlockKey = executor._currentStatementBlockKey;
_currentStatement = executor._currentStatement;
_blockHistory.clear();
_blockHistory.addAll(executor._blockHistory);
_thrownException = executor._thrownException;
}