# isNameInUse method

Future<bool> isNameInUse(

1. String name

)

Checks if a pod name is already in use in this factory.

This method checks if the name is used as an alias, contains a local pod, or has dependent pods registered.

Usage Example:

    final factory = getPodFactory();
    if (await factory.isNameInUse('newPod')) {
      print('Pod name is already in use');
    } else {
      print('Pod name is available');
    }

`name` the pod name to check Returns `true` if the name is in use, `false` otherwise

## Implementation

    Future<bool> isNameInUse(String name) async {
      return isAlias(name) || await containsLocalPod(name) || hasDependentPod(name);
    }