withEnum method
Implementation
FieldType withEnum(bool newIsEnum) {
return FieldType(
isEnum: newIsEnum,
name: name,
displayName: displayName,
isPrimitive: isPrimitive,
generics: generics,
parent: parent,
isOptional: isOptional,
);
}