getLanguageInfo function
Gets language information for the given code
.
Returns null if the language code is not supported.
Example:
final info = getLanguageInfo('fr');
print(info?.nativeName); // Français
Implementation
LanguageInfo? getLanguageInfo(String code) {
return supportedLanguages[code.toLowerCase()];
}