langPackage property
获取语言资源包
Implementation
Future<Map<String, dynamic>> get langPackage async {
var langData = await getLangData();
var appKey = EyFlutter.instance.appConfig?.appKey ?? "";
if (langData.isNotEmptyString) {
Map<String, dynamic> _map = JsonUtils.fromJson(langData);
return _map;
}
Map<String, dynamic> langMap = await _getLangFromApi(appKey, {});
_cacheUnitLang(appKey, langMap);
_cacheLangData(langMap);
return Future.value(langMap);
}