registerService method
Starts a service and returns observable lifecycle completion.
Implementation
ZenithServiceRegistration registerService(ZenithService service) {
if (!isMounted) {
throw StateError('Cannot start a service on a disposed ref');
}
final registration = ZenithServiceRegistration._(service, this);
onDisposeAsync(registration.stop);
return registration;
}