SimpleFormalParameterImpl constructor
SimpleFormalParameterImpl({
- required CommentImpl? comment,
- required List<
AnnotationImpl> ? metadata, - required Token? covariantKeyword,
- required Token? requiredKeyword,
- required Token? keyword,
- required TypeAnnotationImpl? type,
- 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. The keyword can be null
if a type was
specified. The type
must be null
if the keyword is 'var'.
Implementation
SimpleFormalParameterImpl({
required super.comment,
required super.metadata,
required super.covariantKeyword,
required super.requiredKeyword,
required this.keyword,
required TypeAnnotationImpl? type,
required super.name,
}) : _type = type {
_becomeParentOf(_type);
}