We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cdd460 + 7550ecd commit 0e88c1cCopy full SHA for 0e88c1c
bin/generate.dart
@@ -257,13 +257,13 @@ class CodegenLoader extends AssetLoader{
257
for (var file in files) {
258
final localeName =
259
path.basename(file.path).replaceFirst('.json', '').replaceAll('-', '_');
260
- listLocales.add('"$localeName": $localeName');
+ listLocales.add('"$localeName": _$localeName');
261
final fileData = File(file.path);
262
263
Map<String, dynamic>? data = json.decode(await fileData.readAsString());
264
265
final mapString = const JsonEncoder.withIndent(' ').convert(data);
266
- gFile += 'static const Map<String,dynamic> $localeName = $mapString;\n';
+ gFile += 'static const Map<String,dynamic> _$localeName = $mapString;\n';
267
}
268
269
gFile +=
0 commit comments