vmServiceOpened method

void vmServiceOpened(
  1. VmService service
)

Implementation

void vmServiceOpened(VmService service) {
  _selectedIsolate.value = null;

  cancelStreamSubscriptions();
  _service = service;
  autoDisposeStreamSubscription(
    service.onIsolateEvent.listen(_handleIsolateEvent),
  );
  autoDisposeStreamSubscription(
    service.onDebugEvent.listen(_handleDebugEvent),
  );

  // We don't know the main isolate yet.
  _mainIsolate.value = null;
}