fieldFormalParameter2 abstract method
FieldFormalParameter
fieldFormalParameter2({
- Comment? comment,
- List<
Annotation> ? metadata, - Token? covariantKeyword,
- Token? requiredKeyword,
- Token? keyword,
- TypeAnnotation? type,
- required Token thisKeyword,
- required Token period,
- required SimpleIdentifier identifier,
- TypeParameterList? typeParameters,
- FormalParameterList? parameters,
- 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 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
FieldFormalParameter fieldFormalParameter2(
{Comment? comment,
List<Annotation>? metadata,
Token? covariantKeyword,
Token? requiredKeyword,
Token? keyword,
TypeAnnotation? type,
required Token thisKeyword,
required Token period,
required SimpleIdentifier identifier,
TypeParameterList? typeParameters,
FormalParameterList? parameters,
Token? question});