copyWithClass method

TypeDeclaration copyWithClass(
  1. Class classDefinition
)

Returns duplicated TypeDeclaration with attached associatedClass value.

Implementation

TypeDeclaration copyWithClass(Class classDefinition) {
  return TypeDeclaration(
    baseName: baseName,
    isNullable: isNullable,
    associatedClass: classDefinition,
    typeArguments: typeArguments,
  );
}