getLanguageName method

String getLanguageName({
  1. String? languageCode,
})

This just call the getName() function from FlutterLocalizationTranslator class for getting the full language name by the language code.

Implementation

String getLanguageName({String? languageCode}) =>
    FlutterLocalizationTranslator.instance
        .getName(languageCode ?? _currentLocale!.languageCode);