copyUsing method

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

Implementation

PubspecLock copyUsing(void Function(PubspecLock$Change change) mutator) {
  final change = PubspecLock$Change._(
    this.sdks,
    this.packages,
  );
  mutator(change);
  return PubspecLock(
    sdks: change.sdks,
    packages: change.packages,
  );
}