enumConstantDeclaration abstract method
EnumConstantDeclaration
enumConstantDeclaration(
- Comment? comment,
- List<
Annotation> ? metadata, - 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);