SuperFormalParameterImpl constructor
SuperFormalParameterImpl({
- required CommentImpl? comment,
- required List<
AnnotationImpl> ? metadata, - required Token? covariantKeyword,
- required Token? requiredKeyword,
- required Token? keyword,
- required TypeAnnotationImpl? type,
- required Token superKeyword,
- required Token period,
- required Token? name,
- required TypeParameterListImpl? typeParameters,
- required FormalParameterListImpl? parameters,
- required Token? question,
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 there is a type.
The type
must be null
if the keyword is 'var'. The thisKeyword
and
period can be null
if the keyword 'this' was not provided. The
parameters
can be null
if this is not a function-typed field formal
parameter.
Implementation
SuperFormalParameterImpl({
required super.comment,
required super.metadata,
required super.covariantKeyword,
required super.requiredKeyword,
required this.keyword,
required TypeAnnotationImpl? type,
required this.superKeyword,
required this.period,
required super.name,
required TypeParameterListImpl? typeParameters,
required FormalParameterListImpl? parameters,
required this.question,
}) : _type = type,
_typeParameters = typeParameters,
_parameters = parameters {
_becomeParentOf(_type);
_becomeParentOf(_typeParameters);
_becomeParentOf(_parameters);
}