# hasPreferredConstructors method

bool hasPreferredConstructors()

Returns whether this pod definition has any preferred constructors.

This is used to check if a pod is expected to be constructed with specific arguments during instantiation.

### Example

    if (podDef.hasPreferredConstructors()) {
      print("Pod has preferred constructors.");
    }

## Implementation

    bool hasPreferredConstructors() => !preferredConstructors.isEmpty;