type property Null safety

TypeAnnotation? type

Return the type of the variables being declared, or null if no type was provided.

Implementation

TypeAnnotation? get type;
void type=(TypeAnnotation? type)
@Deprecated('Clients should not build AST manually')

Set the type of the variables being declared to the given type.

Implementation

@Deprecated('Clients should not build AST manually')
set type(TypeAnnotation? type);