restore method
Implementation
Future<void> restore() {
if (_disposed || _promptId != null || _restoreId != null) {
return Future.error(StateError('Session is busy'));
}
final id = _id();
_restoreId = id;
_content.beginRestore(id);
final result = _pending[id] = Completer<void>();
try {
runtime.restoreSession(requestId: id, sessionId: sessionId, cwd: cwd);
} catch (error) {
_fail(error);
}
notifySessionChanged();
return result.future;
}