# EnumFieldDeclaration class abstract

Abstract base class representing a field (value) within an enum declaration.

Provides reflective access to enum value metadata including:

- Name and value of the enum field
- Type information
- Parent enum declaration

{@template enum_field_declaration_features}

## Key Features

- Enum value name access
- Raw value inspection
- Type-safe enum value handling
- Parent enum resolution

## Implementations

Typically implemented by code generators or runtime reflection systems.

## Example Usage

    enum Status { active, paused }

    final enumDecl = reflector.getEnumDeclaration(Status);
    final activeField = enumDecl.getField('active');

    print(activeField.getName()); // 'active'
    print(activeField.getValue()); // Status.active

{@endtemplate}

Inheritance
  - Object
  - Declaration
  - EntityDeclaration
  - SourceDeclaration
  - EnumFieldDeclaration

## Constructors

EnumFieldDeclaration.new()
  Creates a new enum field declaration.
  const

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

getAnnotations() → List<AnnotationDeclaration>
  Returns all annotations applied to this declaration.
  inherited
getDartType() → DartType?
  The analyzer DartType of the entity for enhanced type operations.
  inherited
getDebugIdentifier() → String
  The debug identifier for the entity.
  inherited
getElement() → Element?
  The analyzer element associated with this declaration.
  inherited
getIsPublic() → bool
  Checks if this declaration is a public declaration.
  inherited
getIsSynthetic() → bool
  Checks if a declaration is a synthetic declaration.
  inherited
getName() → String
  Gets the name of the declared element.
  inherited
getParentLibrary() → LibraryDeclaration
  Returns the LibraryDeclaration in which this declaration is defined.
  inherited
getPosition() → int
  This is the position of the enum field, as-is on the enum class.
getSourceLocation() → Uri?
  Returns the source code location (e.g., file path or URI) where this declaration is defined, or `null` if not available in the current reflection context.
  inherited
getType() → Type
  Gets the runtime type of the declared element.
  inherited
getValue() → dynamic
  Gets the runtime value of this enum field.
hasAnalyzerSupport() → bool
  Returns true if this declaration has analyzer information available.
  inherited
isNullable() → bool
  Returns true if the field is nullable.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toJson() → Map<String, Object>
  Returns a JSON representation of this entity.
  inherited
toString() → String
  A string representation of this object.
  inherited

## Operators

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