handleServiceEvent method

  1. @protected
  2. @mustCallSuper
Future<void> handleServiceEvent(
  1. Event event
)

Implementation

@protected
@mustCallSuper
Future<void> handleServiceEvent(vm.Event event) async {
  await debuggerInitialized;

  switch (event.kind) {
    // Service registrations are passed to the client so they can toggle
    // behaviour based on their presence.
    case vm.EventKind.kServiceRegistered:
      this._sendServiceRegistration(event.service!, event.method!);
      break;
    case vm.EventKind.kServiceUnregistered:
      this._sendServiceUnregistration(event.service!, event.method!);
      break;
  }
}