Returns true if value is primitive (String, int, double, num or bool).
true
value
static bool isPrimitiveValue(Object value) { return TypeInfo.from(value).isPrimitiveType; }