startPubGet method
Implementation
Future<void> startPubGet({
required String flutterExecutable,
required Package package,
}) async {
_guardEntrypointContainsPackage(package);
final controller = ShellLinesController();
final listen = controller.stream.listen(print);
final dir = package.directory.path;
final shell = Shell(
workingDirectory: dir,
stdout: controller.sink,
);
print('\n[${package.name}] pub get started at directory "$dir"');
await shell.run(
'$flutterExecutable pub get',
);
controller.close();
await listen.cancel();
}