fieldFormalParameter2 abstract method

FieldFormalParameter fieldFormalParameter2({
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? covariantKeyword,
  4. Token? requiredKeyword,
  5. Token? keyword,
  6. TypeAnnotation? type,
  7. required Token thisKeyword,
  8. required Token period,
  9. required SimpleIdentifier identifier,
  10. TypeParameterList? typeParameters,
  11. FormalParameterList? parameters,
  12. Token? question,
})

Returns a newly created formal parameter. Either or both of the comment and metadata can be null if the parameter does not have the corresponding attribute. The keyword can be null if there is a type. The type must be null if the keyword is 'var'. The thisKeyword and period can be null if the keyword 'this' was not provided. The parameters can be null if this is not a function-typed field formal parameter.

Implementation

FieldFormalParameter fieldFormalParameter2(
    {Comment? comment,
    List<Annotation>? metadata,
    Token? covariantKeyword,
    Token? requiredKeyword,
    Token? keyword,
    TypeAnnotation? type,
    required Token thisKeyword,
    required Token period,
    required SimpleIdentifier identifier,
    TypeParameterList? typeParameters,
    FormalParameterList? parameters,
    Token? question});