ConstructorDeclaration class

A constructor declaration.

constructorDeclaration ::= constructorSignature FunctionBody? | constructorName formalParameterList ':' 'this' ('.' SimpleIdentifier)? arguments

constructorSignature ::= 'external'? constructorName formalParameterList initializerList? | 'external'? 'factory' factoryName formalParameterList initializerList? | 'external'? 'const' constructorName formalParameterList initializerList?

constructorName ::= SimpleIdentifier ('.' SimpleIdentifier)?

factoryName ::= Identifier ('.' SimpleIdentifier)?

initializerList ::= ':' ConstructorInitializer (',' ConstructorInitializer)*

Implemented types

Constructors

ConstructorDeclaration(FormalParameterList? parameters, List<AstRuntimeNode>? initializerList, BlockFunctionBody? body, AstRuntimeNode? returnType)

Properties

body BlockFunctionBody?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initializerList List<AstRuntimeNode>?
getter/setter pair
parameters FormalParameterList?
getter/setter pair
returnType AstRuntimeNode?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAst(Map? ast) ConstructorDeclaration?