EvalOnDartLibrary constructor

EvalOnDartLibrary(
  1. String libraryName,
  2. VmService service, {
  3. required ServiceManager<VmService> serviceManager,
  4. ValueListenable<IsolateRef?>? isolate,
  5. bool disableBreakpoints = true,
  6. bool oneRequestAtATime = false,
  7. bool logExceptions = true,
})

Implementation

EvalOnDartLibrary(
  this.libraryName,
  this.service, {
  required this.serviceManager,
  ValueListenable<IsolateRef?>? isolate,
  this.disableBreakpoints = true,
  this.oneRequestAtATime = false,
  this.logExceptions = true,
}) : _clientId = Random().nextInt(1000000000) {
  _libraryRef = Completer<LibraryRef>();

  // For evals in tests, we will pass the isolateId into the constructor.
  isolate ??= serviceManager.isolateManager.selectedIsolate;
  addAutoDisposeListener(isolate, () => _init(isolate!.value));
  _init(isolate.value);
}