Returns true if type is String, int, double, num or bool.
true
String
int
double
num
bool
bool get isPrimitiveType => typeInfo.isPrimitiveType;