simpleFormalParameter2 abstract method

SimpleFormalParameter simpleFormalParameter2(
  1. {Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? covariantKeyword,
  4. Token? requiredKeyword,
  5. Token? keyword,
  6. TypeAnnotation? type,
  7. required SimpleIdentifier? identifier}
)

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 a type was specified. The type must be null if the keyword is 'var'.

Implementation

SimpleFormalParameter simpleFormalParameter2(
    {Comment? comment,
    List<Annotation>? metadata,
    Token? covariantKeyword,
    Token? requiredKeyword,
    Token? keyword,
    TypeAnnotation? type,
    required SimpleIdentifier? identifier});