isCurrentlyInCreation method

bool isCurrentlyInCreation(
  1. String name
)
inherited

Check whether the specified singleton pod is currently in creation.

name: The name of the pod to check Returns true if the pod is currently being created, false otherwise

Example:

if (registry.isCurrentlyInCreation('userService')) {
  print('UserService is being created - possible circular dependency');
}

Implementation

bool isCurrentlyInCreation(String name) => !_currentlyExcludedPodsForCreationChecks.contains(name) && isActuallyInCreation(name);