# containsLocalPod method

1. @override

Future<bool> containsLocalPod(

1. String name

)
override

Checks if a pod with the given name is registered locally in this factory.

Unlike containsPod, this method only checks the current factory and does not delegate to parent factories.

## Usage Example:

    if (await factory.containsLocalPod('localService')) {
      print('localService is defined in this factory, not inherited from parent');
    }

@param podName The name of the pod to check @return A Future that completes with true if the pod exists locally

## Implementation

    @override
    Future<bool> containsLocalPod(String name) async {
      final transformed = transformedPodName(name);
      final matches = containsSingleton(transformed) || containsDefinition(transformed);
      final isFactory = !PodUtils.isFactoryDereference(name) || await isPodProvider(transformed);

      return matches && isFactory;
    }