asEnum abstract method
Returns the enum field declaration if it is an enum field declaration, otherwise null.
Used when we confidently know that the declaration is an enum field declaration.
Example:
final field = field.asEnum();
Implementation
EnumFieldDeclaration? asEnum();