# isDependent method

1. @protected

bool isDependent(

1. String name,
2. String dependentName

)
inherited

Determine whether the specified dependent pod has been registered as dependent on the given pod or on any of its transitive dependencies.

This method checks for both direct and transitive dependencies.

`name`: The name of the pod to check for dependency `dependentName`: The name of the potentially dependent pod Returns true if there is a dependency relationship, false otherwise

Example:

    if (registry.isDependent('userService', 'orderService')) {
      print('OrderService depends on UserService');
    }

## Implementation

    @protected
    bool isDependent(String name, String dependentName) {
      return synchronized(_dependentPods, () {
        return _isDependent(name, dependentName, null);
      });
    }