readJsonFiles function

Map<File, String> readJsonFiles(
  1. String localizationPath
)

Implementation

Map<File, String> readJsonFiles(String localizationPath) {
  final response = <File, String>{};
  final dir = Directory(localizationPath);
  final files = dir.listSync();

  for (var file in files) {
    response[(file as File)] = (file).readAsStringSync();
  }

  return response;
}