fieldDeclaration2 abstract method

FieldDeclaration fieldDeclaration2({
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? abstractKeyword,
  4. Token? augmentKeyword,
  5. Token? covariantKeyword,
  6. Token? externalKeyword,
  7. Token? staticKeyword,
  8. required VariableDeclarationList fieldList,
  9. 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 abstractKeyword, augmentKeyword, covariantKeyword, externalKeyword and staticKeyword can be null if the field does not have the corresponding modifier.

Implementation

FieldDeclaration fieldDeclaration2(
    {Comment? comment,
    List<Annotation>? metadata,
    Token? abstractKeyword,
    Token? augmentKeyword,
    Token? covariantKeyword,
    Token? externalKeyword,
    Token? staticKeyword,
    required VariableDeclarationList fieldList,
    required Token semicolon});