changeLang method
Changing the current selected language
Implementation
Future changeLang(String lang) async{
if(!_languageMapping.containsKey(lang)) {
throwNUI(_MODULE, "Language $lang is not found");
return;
}
_currentSelectedLang = lang;
await NUISharedPref.get().save("$_MODULE SELECTED_LANG", lang);
// Sends out a bus event to notify on the change in selected language
NUIBusEvent.get(module: _MODULE).send(NUIBusEventData<String>(data: lang, sender: _MODULE, code: "Language Change"));
}