How to perform Pub Get programatically from a Dart program
import 'dart:io';void main() { Process.run('pub', ['get'], runInShell: true, workingDirectory: 'dirWherePubspec.yaml_is') .then((ProcessResult results) { // ... });}
or alternatively Process.start(...)