addPackages static method
Add a packages to your pubspec.yaml file.
Implementation
static Future<void> addPackages(
List<String> packages, {
bool dev = false,
}) async {
String command = "dart pub add";
if (dev) {
command += " --dev";
}
command += " ${packages.join(" ")}";
await runProcess(command);
}