copyUsing method

GitPackageDependencySpec copyUsing(
  1. void mutator(
    1. GitPackageDependencySpec$Change change
    )
)

Implementation

GitPackageDependencySpec copyUsing(
    void Function(GitPackageDependencySpec$Change change) mutator) {
  final change = GitPackageDependencySpec$Change._(
    this.package,
    this.url,
    this.ref,
    this.path,
  );
  mutator(change);
  return GitPackageDependencySpec(
    package: change.package,
    url: change.url,
    ref: change.ref,
    path: change.path,
  );
}