loadLang method

void loadLang()

初始化加载缓存语言

Implementation

void loadLang() {
  KeepManager.instance.perform(
      params: "",
      maxCount: 3,
      function: (params) async {
        var response = await MmkvUtils.instance.getString(_currLangCacheKey);
        if (response.isNotEmptyString) {
          MemoryUtils.instance.set(_currLangCacheKey, response);
          return true;
        }
        return false;
      });
}