downgrade static method

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

Run pub downgrade on the current project.

Implementation

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