callLifecycleCallbacks method
Implementation
@protected
FutureOr<void> callLifecycleCallbacks(
ServiceManagerLifecycle lifecycle,
T? service,
) async {
final callbacks =
_lifecycleCallbacks[lifecycle] ?? <ServiceManagerCallback<T>>[];
await Future.wait(callbacks.map((c) async => await c.call(service)));
}