upgrade static method
Run pub upgrade
on the current project.
Implementation
static void upgrade({RunOptions? runOptions, String? workingDirectory}) {
runOptions = mergeWorkingDirectory(workingDirectory, runOptions);
_run('upgrade', runOptions: runOptions);
}