languageList property
Returns the list of languages supported by the SDK API.
Returns
- List<Language>: available languages.
Also see:
- getBestLanguageMatch - Find the best matching language for given codes.
- setTTSVoiceByLanguage - Set the TTS voice (used by text-to-speech) by language.
Implementation
static List<Language> get languageList {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getLanguageList',
);
final List<dynamic> categoriesJson = resultString['result'];
final List<Language> categories = categoriesJson
.map((dynamic categoryJson) => Language.fromJson(categoryJson))
.toList();
return categories;
}