fieldDeclaration2 abstract method

FieldDeclaration fieldDeclaration2({
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? abstractKeyword,
  4. Token? covariantKeyword,
  5. Token? externalKeyword,
  6. Token? staticKeyword,
  7. required VariableDeclarationList fieldList,
  8. 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});