runPubUpgrade method

void runPubUpgrade(
  1. String? workingDirectory, {
  2. Progress? progress,
  3. bool compileExecutables = false,
})

runs 'dart pub upgrade'

Implementation

void runPubUpgrade(
  String? workingDirectory, {
  Progress? progress,
  bool compileExecutables = false,
}) {
  runPub(
    args: ['upgrade', if (!compileExecutables) '--no-precompile'],
    workingDirectory: workingDirectory,
    progress: progress,
  );
}