handleServiceEvent method
- @protected
- @mustCallSuper
Future<void>
handleServiceEvent(
- 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;
}
}