runPubGet method
Run the
Implementation
@protected
Future<void> runPubGet() {
return Process.run(
'dart',
<String>['pub', 'get'],
runInShell: true,
stdoutEncoding: utf8,
stderrEncoding: utf8,
).then<void>((ProcessResult result) {
final String errorOutput = result.stderr.toString();
if (!errorOutput.contains(dependenciesOverridden) &&
errorOutput.isNotEmpty) {
throw UnrecoverableException(
'could not run pub get: $errorOutput',
exitPackageUpdatedFailed,
);
}
});
}