runDartPubGet method
Runs dart pub get
in the projectDirectory.
Implementation
Future<bool> runDartPubGet() async {
var workingDir = await projectDirectory;
var processInfo = await runProcess('dart', ['pub', 'get'],
workingDirectory: workingDir.path);
var ok = await processInfo.checkExitCode();
if (!ok) {
throw StateError('Error running: dart pub get > $processInfo');
}
return ok;
}