onExtensionEvent property Null safety

Stream<Event> onExtensionEvent

Emits an Event of type ServiceRegistered for all current and future extensions that are registered, and ServiceUnregistered when those clients disconnect.

Implementation

Stream<Event> get onExtensionEvent => _eventController.stream
    .transform(startWithMany(registeredExtensions.map(_toRegistrationEvent)));