EvalOnDartLibrary constructor
EvalOnDartLibrary(
- String libraryName,
- VmService service, {
- required ServiceManager<
VmService> serviceManager, - ValueListenable<
IsolateRef?> ? isolate, - bool disableBreakpoints = true,
- bool oneRequestAtATime = false,
- 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);
}