getLanguage static method
Get language
Implementation
static Future<Language> getLanguage() async {
final language = await _channel.invokeMethod("getLanguage");
Map<String, Language> languageMap = {
'en': Language.en,
'zh_hans': Language.zh_hans,
'zh_hant': Language.zh_hant,
'ja': Language.ja,
'ko': Language.ko,
};
return languageMap[language.toString()] ?? Language.en;
}