returnType property Null safety

Identifier returnType

Return the type of object being created.

This can be different than the type in which the constructor is being declared if the constructor is the implementation of a factory constructor.

Implementation

Identifier get returnType;
void returnType=(Identifier typeName)
@Deprecated('Clients should not build AST manually')

Set the type of object being created to the given typeName.

Implementation

@Deprecated('Clients should not build AST manually')
set returnType(Identifier typeName);