getClassNameRoot function

String getClassNameRoot({
  1. required String baseName,
  2. I18nLocale? locale,
  3. 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;
}