fieldDeclaration2 abstract method
FieldDeclaration
fieldDeclaration2({
- Comment? comment,
- List<
Annotation> ? metadata, - Token? abstractKeyword,
- Token? covariantKeyword,
- Token? externalKeyword,
- Token? staticKeyword,
- required VariableDeclarationList fieldList,
- required Token semicolon,
Returns a newly created field declaration. Either or both of the
comment
and metadata
can be null
if the declaration does not have
the corresponding attribute. The staticKeyword
can be null
if the
field is not a static field.
Implementation
FieldDeclaration fieldDeclaration2(
{Comment? comment,
List<Annotation>? metadata,
Token? abstractKeyword,
Token? covariantKeyword,
Token? externalKeyword,
Token? staticKeyword,
required VariableDeclarationList fieldList,
required Token semicolon});