copyWithProxyApi method

TypeDeclaration copyWithProxyApi(
  1. AstProxyApi proxyApiDefinition
)

Returns duplicated TypeDeclaration with attached associatedProxyApi value.

Implementation

TypeDeclaration copyWithProxyApi(AstProxyApi proxyApiDefinition) {
  return TypeDeclaration(
    baseName: baseName,
    isNullable: isNullable,
    associatedProxyApi: proxyApiDefinition,
    typeArguments: typeArguments,
  );
}