reconfigureyaml function
Implementation
Future<Directory> reconfigureyaml(
Directory dirWithYaml, String projectname) async {
final yamlFile = File('${dirWithYaml.path}/pubspec.yaml');
final contents = await yamlFile.readAsString();
final newContents = contents.replaceAll('project_name', projectname);
await yamlFile.writeAsString(newContents);
Process.run('dart', ['pub', 'get'], workingDirectory: dirWithYaml.path);
return dirWithYaml;
}