upgradeAsync static method
Run pub upgrade
on the current project.
Implementation
static Future upgradeAsync(
{RunOptions? runOptions, String? workingDirectory}) {
runOptions = mergeWorkingDirectory(workingDirectory, runOptions);
return runlib
.runAsync(sdkBin('dart'),
arguments: ['pub', 'upgrade'], runOptions: runOptions)
.then((_) => null);
}