enumDeclaration abstract method
- @Deprecated('Use enumDeclaration2() instead')
- Comment? comment,
- List<
Annotation> ? metadata, - Token enumKeyword,
- SimpleIdentifier name,
- Token leftBracket,
- List<
EnumConstantDeclaration> constants, - Token rightBracket,
Returns a newly created enumeration declaration. Either or both of the
comment
and metadata
can be null
if the declaration does not have
the corresponding attribute. The list of constants
must contain at least
one value.
Implementation
@Deprecated('Use enumDeclaration2() instead')
EnumDeclaration enumDeclaration(
Comment? comment,
List<Annotation>? metadata,
Token enumKeyword,
SimpleIdentifier name,
Token leftBracket,
List<EnumConstantDeclaration> constants,
Token rightBracket);