type property Null safety

TypeAnnotation? type

Return the declared type of the parameter, or null if the parameter does not have a declared type.

Note that if this is a function-typed field formal parameter this is the return type of the function.

Implementation

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

Set the declared type of the parameter to the given type.

Implementation

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