methodDeclaration abstract method

MethodDeclaration methodDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? externalKeyword,
  4. Token? modifierKeyword,
  5. TypeAnnotation? returnType,
  6. Token? propertyKeyword,
  7. Token? operatorKeyword,
  8. SimpleIdentifier name,
  9. TypeParameterList? typeParameters,
  10. FormalParameterList? parameters,
  11. 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);