getClassNameRoot function
String
getClassNameRoot({
- required String baseName,
- I18nLocale? locale,
- required TranslationClassVisibility visibility,
Implementation
String getClassNameRoot({
required String baseName,
I18nLocale? locale,
required TranslationClassVisibility visibility,
}) {
String result = baseName.toCase(CaseStyle.pascal) +
(locale != null
? locale.languageTag.toCaseOfLocale(CaseStyle.pascal)
: '');
if (visibility == TranslationClassVisibility.private) result = '_' + result;
return result;
}