copyWithClass method
Returns duplicated TypeDeclaration
with attached associatedClass
value.
Implementation
TypeDeclaration copyWithClass(Class classDefinition) {
return TypeDeclaration(
baseName: baseName,
isNullable: isNullable,
associatedClass: classDefinition,
typeArguments: typeArguments,
);
}