copyWithTypeArguments method

TypeDeclaration copyWithTypeArguments(
  1. List<TypeDeclaration> types
)

Returns duplicated TypeDeclaration with attached associatedProxyApi value.

Implementation

TypeDeclaration copyWithTypeArguments(List<TypeDeclaration> types) {
  return TypeDeclaration(
    baseName: baseName,
    isNullable: isNullable,
    typeArguments: types,
    associatedClass: associatedClass,
    associatedEnum: associatedEnum,
    associatedProxyApi: associatedProxyApi,
  );
}