initLanguage method

void initLanguage(
  1. List<LanguageVo> languages
)

初始化语言

Implementation

void initLanguage(List<LanguageVo> languages) {
  _langMap = <String, LanguageVo>{};
  for (var it in languages) {
    _langMap[it.name] = it;
  }
}