callLifecycleCallbacks method

  1. @protected
FutureOr<void> callLifecycleCallbacks(
  1. ServiceManagerLifecycle lifecycle,
  2. T? service
)

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)));
}