typeParameter abstract method

TypeParameter typeParameter(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. SimpleIdentifier name,
  4. Token? extendsKeyword,
  5. TypeAnnotation? bound,
)

Returns a newly created type parameter. Either or both of the comment and metadata can be null if the parameter does not have the corresponding attribute. The extendsKeyword and bound can be null if the parameter does not have an upper bound.

Implementation

TypeParameter typeParameter(Comment? comment, List<Annotation>? metadata,
    SimpleIdentifier name, Token? extendsKeyword, TypeAnnotation? bound);