copyUsing method
Implementation
PubspecYaml copyUsing(void Function(PubspecYaml$Change change) mutator) {
final change = PubspecYaml$Change._(
this.name,
this.version,
this.description,
this.authors,
this.homepage,
this.repository,
this.issueTracker,
this.documentation,
this.publishTo,
this.dependencies,
this.devDependencies,
this.dependencyOverrides,
this.environment,
this.executables,
this.customFields,
);
mutator(change);
return PubspecYaml(
name: change.name,
version: change.version,
description: change.description,
authors: change.authors,
homepage: change.homepage,
repository: change.repository,
issueTracker: change.issueTracker,
documentation: change.documentation,
publishTo: change.publishTo,
dependencies: change.dependencies,
devDependencies: change.devDependencies,
dependencyOverrides: change.dependencyOverrides,
environment: change.environment,
executables: change.executables,
customFields: change.customFields,
);
}