Translator constructor
Translator({
- required String language,
- required Map<
String, List< loaders,TranslationLoader> >
Constructs the Translator with mapping of supported languages codes to the respective list of TranslationLoader instances to laod the values for each supported language.
Upon calling initialize, the list of loaders for the passed in
language
will be used.
Implementation
Translator({
required String language,
required Map<String, List<TranslationLoader>> loaders,
}) : _language = language,
_loaders = loaders;