enumConstantDeclaration abstract method

EnumConstantDeclaration enumConstantDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. SimpleIdentifier name
)

Returns a newly created enum constant declaration. Either or both of the comment and metadata can be null if the constant does not have the corresponding attribute. (Technically, enum constants cannot have metadata, but we allow it for consistency.)

Implementation

EnumConstantDeclaration enumConstantDeclaration(
    Comment? comment, List<Annotation>? metadata, SimpleIdentifier name);