getType method Null safety

Type getType()

Implementation

Type getType() => T;