constructorDeclaration abstract method
- 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,
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);