Returns true if type is String, int, double, num or bool.
true
String
int
double
num
bool
bool get isPrimitiveType => isStringType || isIntType || isDoubleType || isNumType || isBoolType;