# ImportClass.package constructor

const ImportClass.package(

1. String name

)

Creates a new ImportClass with the given `name`. This constructor is used when the import is not qualified.

🫘 Represents an import entry with optional qualification metadata.

ImportClass is a value object that encapsulates the name of a class or symbol being imported, along with a flag that indicates whether the import uses a fully qualified name.

## Fields

- `name` – The package name or qualified class name to be imported.
- isQualifiedName – Whether `name` is a fully qualified identifier (e.g. `package:my_app/src/service.MyService`) instead of a simple class name.

## Example

    const simple = ImportClass.package('service');
    const qualified = ImportClass.qualified('package:my_app/src/service.MyService');

    print(simple.name);           // service
    print(simple.isQualifiedName); // false
    print(qualified.isQualifiedName); // true

## Use Cases

- Tracking import metadata in code generation.
- Differentiating between short names and fully qualified names.
- Used by import selectors or registries to manage dependency references.

## Implementation

    const ImportClass.package(this.name) : isQualifiedName = false;