upgrade static method

void upgrade({
  1. RunOptions? runOptions,
  2. String? workingDirectory,
})

Run pub upgrade on the current project.

Implementation

static void upgrade({RunOptions? runOptions, String? workingDirectory}) {
  runOptions = mergeWorkingDirectory(workingDirectory, runOptions);
  _run('upgrade', runOptions: runOptions);
}