# isNameInUse method

1. @override

Future<bool> isNameInUse(

1. String name

)
override

Returns `true` if `name` is currently in use in this registry.

This method checks if a pod name is already registered, which is useful for validating new pod registrations and preventing name conflicts.

`name`: The pod name to check for availability Returns true if the name is already registered, false if available

Example:

    final proposedName = 'newService';
    if (registry.isNameInUse(proposedName)) {
      throw PodException('Pod name "$proposedName" is already registered');
    } else {
      registry.registerDefinition(proposedName, newServicePod);
    }

## Implementation

    @override
    Future<bool> isNameInUse(String name) async {
      final f = getPodFactory();

      if (await f.isNameInUse(name)) {
        return true;
      }

      if (_parent != null) {
        return await _parent!.getPodFactory().isNameInUse(name);
      }

      return false;
    }