constructorDeclaration abstract method

ConstructorDeclaration constructorDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? externalKeyword,
  4. Token? constKeyword,
  5. Token? factoryKeyword,
  6. Identifier returnType,
  7. Token? period,
  8. SimpleIdentifier? name,
  9. FormalParameterList parameters,
  10. Token? separator,
  11. List<ConstructorInitializer>? initializers,
  12. ConstructorName? redirectedConstructor,
  13. FunctionBody body,
)

Returns a newly created constructor declaration. The externalKeyword can be null if the constructor is not external. Either or both of the comment and metadata can be null if the constructor does not have the corresponding attribute. The constKeyword can be null if the constructor cannot be used to create a constant. The factoryKeyword can be null if the constructor is not a factory. The period and name can both be null if the constructor is not a named constructor. The separator can be null if the constructor does not have any initializers and does not redirect to a different constructor. The list of initializers can be null if the constructor does not have any initializers. The redirectedConstructor can be null if the constructor does not redirect to a different constructor.

Implementation

ConstructorDeclaration constructorDeclaration(
    Comment? comment,
    List<Annotation>? metadata,
    Token? externalKeyword,
    Token? constKeyword,
    Token? factoryKeyword,
    Identifier returnType,
    Token? period,
    SimpleIdentifier? name,
    FormalParameterList parameters,
    Token? separator,
    List<ConstructorInitializer>? initializers,
    ConstructorName? redirectedConstructor,
    FunctionBody body);