registerConfig<T extends OnLangConfig> method

void registerConfig<T extends OnLangConfig>(
  1. T? config
)

config OnLangConfig实现类

Implementation

void registerConfig<T extends OnLangConfig>(T? config) {
  if (config == null) {
    return;
  }
  ConfigManager.instance.addConfig(_langTypeConfigKey, config);
  var langEntries = _getLangEntries();
  if (langEntries?.length == _supportLangMap.length) {
    _isUpdateSupportLang = false;
  } else {
    _isUpdateSupportLang = true;
  }
}