Skip to content

Commit a189d0f

Browse files
cgiulianicgiuliani
cgiuliani
authored and
cgiuliani
committed
fix: leading underscore in constructors
1 parent 150fa3d commit a189d0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configurator/lib/src/utils/i18n_generator.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void _generateClass(
181181
childName: key,
182182
);
183183
buffer.writeln(
184-
'late final $childClassWithLocale $key = $childClassWithLocale._(_config);');
184+
'late final $childClassWithLocale $key = $childClassWithLocale(_config);');
185185
}
186186
} else if (value is PluralNode) {
187187
final returnType = value.rich ? 'TextSpan' : 'String';
@@ -269,7 +269,7 @@ void _generateMap({
269269
queue.add(ClassTask(childClassNoLocale, value));
270270
String childClassWithLocale =
271271
getClassName(parentName: className, childName: key);
272-
buffer.writeln('\'$key\': $childClassWithLocale._(_config),');
272+
buffer.writeln('\'$key\': $childClassWithLocale(_config),');
273273
}
274274
} else if (value is PluralNode) {
275275
buffer.write('\'$key\': ');
@@ -367,7 +367,7 @@ void _generateList({
367367
childName: key,
368368
// locale: locale,
369369
);
370-
buffer.writeln('$childClassWithLocale._(_config),');
370+
buffer.writeln('$childClassWithLocale(_config),');
371371
}
372372
} else if (value is PluralNode) {
373373
_addPluralizationCall(

0 commit comments

Comments
 (0)