methodDeclaration abstract method
MethodDeclaration
methodDeclaration(
- Comment? comment,
- List<
Annotation> ? metadata, - Token? externalKeyword,
- Token? modifierKeyword,
- TypeAnnotation? returnType,
- Token? propertyKeyword,
- Token? operatorKeyword,
- SimpleIdentifier name,
- TypeParameterList? typeParameters,
- FormalParameterList? parameters,
- FunctionBody body,
Returns a newly created method declaration. Either or both of the
comment
and metadata
can be null
if the declaration does not have
the corresponding attribute. The externalKeyword
can be null
if the
method is not external. The modifierKeyword
can be null
if the method
is neither abstract nor static. The returnType
can be null
if no
return type was specified. The propertyKeyword
can be null
if the
method is neither a getter or a setter. The operatorKeyword
can be
null
if the method does not implement an operator. The parameters
must
be null
if this method declares a getter.
Implementation
MethodDeclaration methodDeclaration(
Comment? comment,
List<Annotation>? metadata,
Token? externalKeyword,
Token? modifierKeyword,
TypeAnnotation? returnType,
Token? propertyKeyword,
Token? operatorKeyword,
SimpleIdentifier name,
TypeParameterList? typeParameters,
FormalParameterList? parameters,
FunctionBody body);