functionDeclaration abstract method

FunctionDeclaration functionDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? externalKeyword,
  4. TypeAnnotation? returnType,
  5. Token? propertyKeyword,
  6. SimpleIdentifier name,
  7. FunctionExpression functionExpression,
)

Returns a newly created function declaration. Either or both of the comment and metadata can be null if the function does not have the corresponding attribute. The externalKeyword can be null if the function is not an external function. The returnType can be null if no return type was specified. The propertyKeyword can be null if the function is neither a getter or a setter.

Implementation

FunctionDeclaration functionDeclaration(
    Comment? comment,
    List<Annotation>? metadata,
    Token? externalKeyword,
    TypeAnnotation? returnType,
    Token? propertyKeyword,
    SimpleIdentifier name,
    FunctionExpression functionExpression);