functionTypedFormalParameter2 abstract method

FunctionTypedFormalParameter functionTypedFormalParameter2({
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? covariantKeyword,
  4. Token? requiredKeyword,
  5. TypeAnnotation? returnType,
  6. required SimpleIdentifier identifier,
  7. TypeParameterList? typeParameters,
  8. required FormalParameterList parameters,
  9. 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 returnType can be null if no return type was specified.

Implementation

FunctionTypedFormalParameter functionTypedFormalParameter2(
    {Comment? comment,
    List<Annotation>? metadata,
    Token? covariantKeyword,
    Token? requiredKeyword,
    TypeAnnotation? returnType,
    required SimpleIdentifier identifier,
    TypeParameterList? typeParameters,
    required FormalParameterList parameters,
    Token? question});