copyWithEnum method
Returns duplicated TypeDeclaration
with attached associatedEnum
value.
Implementation
TypeDeclaration copyWithEnum(Enum enumDefinition) {
return TypeDeclaration(
baseName: baseName,
isNullable: isNullable,
associatedEnum: enumDefinition,
typeArguments: typeArguments,
);
}