# ImportClass class final

🫘 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.

Mixed-in types
  - EqualsAndHashCode

## Constructors

ImportClass.new(String name, bool isQualifiedName)
  Creates a new ImportClass with the given `name` and `isQualifiedName` flag.
  const
ImportClass.package(String name)
  Creates a new ImportClass with the given `name`. This constructor is used when the import is not qualified.
  const
ImportClass.qualified(String name)
  Creates a new ImportClass with the given `name`. This constructor is used when the import is qualified.
  const

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
isQualifiedName → bool
  Whether name is fully qualified (e.g. includes a package or path).
  final
name → String
  The name of the class or symbol to import.
  final
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

equalizedProperties() → List<Object?>
  Mixin-style contract for value-based equality, `hashCode`, and `toString`.
  override
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited