NormalFormalParameterImpl constructor

NormalFormalParameterImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
  3. required Token? covariantKeyword,
  4. required Token? requiredKeyword,
  5. required Token? name,
})

Initialize 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.

Implementation

NormalFormalParameterImpl({
  required CommentImpl? comment,
  required List<AnnotationImpl>? metadata,
  required this.covariantKeyword,
  required this.requiredKeyword,
  required this.name,
}) : _comment = comment {
  _becomeParentOf(_comment);
  _metadata._initialize(this, metadata);
}