hasDependentPod method

  1. @protected
bool hasDependentPod(
  1. String name
)
inherited

Determine whether a dependent pod has been registered for the given name.

name: The name of the pod to check Returns true if any pods depend on this pod, false otherwise

Example:

if (registry.hasDependentPod('userService')) {
  print('Some pods depend on UserService');
}

Implementation

@protected
bool hasDependentPod(String name) => _dependentPods.containsKey(name);