dartType property

DartType? dartType
getter/setter pair

Optional type for optimizing generated code if value references a local.

Locals are stored in a dynamic map, thus retain no type annotation. If dartType is non-null, it's used to generate a type annotation for the local variable declaration.

Implementation

DartType? dartType;