getDependencies method
Implementation
void getDependencies(String appName) {
Process.run('cd', ['./$appName', '&&', 'flutter', 'pub', 'get'],
runInShell: true)
.then((result) {
if (result.exitCode == 0) {
print('Dependencies fetched successfully');
} else {
print('Error fetching dependencies: ${result.stderr}');
}
});
}