migrateArbRunner function
Implementation
Future<void> migrateArbRunner(String sourcePath, String destinationPath) async {
print('Migrating ARB to JSON...');
final source = await File(sourcePath).readAsString();
final resultMap = migrateArb(source);
FileUtils.createMissingFolders(filePath: destinationPath);
FileUtils.writeFile(
path: destinationPath,
content: JsonEncoder.withIndent(' ').convert(resultMap),
);
print('');
print(
'Please don\'t forget to configure the correct string_interpolation in build.yaml');
print('');
print('File generated: ${destinationPath.toAbsolutePath()}');
}