type property Null safety

TypeReference type
override

Returns as a TypeReference, which allows adding generic type parameters.

Implementation

@override
TypeReference get type => this;