NUIMTLingual.builder constructor
NUIMTLingual.builder(
- NUIMTLingualBuilder builder
Building the NUIMTLingual instance from the builder class
Implementation
NUIMTLingual.builder(NUIMTLingualBuilder builder){
_currentSelectedLang = builder._initialLang;
_languageMapping = Map();
for(var l in builder._languages ?? []){
_languageMapping[l.code] = l;
_currentSelectedLang = _currentSelectedLang ?? l.code;
}
_instance = this;
}