setPackageVersion function

void setPackageVersion(
  1. String value, {
  2. FileSystem? fs,
  3. Directory? workingDir,
})

Implementation

void setPackageVersion(String value, {FileSystem? fs, Directory? workingDir}) =>
    setPubspecKey(
      'version',
      value,
      fs: fs,
      workingDir: workingDir,
    );