changeLinuxCppName method
Implementation
Future<bool> changeLinuxCppName(String? appName, String oldAppName) async {
List? contentLineByLine = await readFileAsLineByline(
filePath: linuxAppCppPath,
);
if (checkFileExists(contentLineByLine)) {
logger.w('''
Linux AppName could not be changed because,
The related file could not be found in that path: $linuxAppCppPath
''');
return false;
}
for (var i = 0; i < contentLineByLine!.length; i++) {
contentLineByLine[i] =
contentLineByLine[i].replaceAll(oldAppName, appName);
}
return true;
}