ActiveLocalizationDelegate constructor
ActiveLocalizationDelegate({
- required Iterable<
Locale> supportedLocales, - Locale? fallbackLocale,
- TranslationLoader? loader,
- AssetBundle? bundle,
- String assetPath = 'assets/language',
Implementation
ActiveLocalizationDelegate({
required Iterable<Locale> supportedLocales,
this.fallbackLocale,
this.loader,
this.bundle,
this.assetPath = 'assets/language',
}) : supportedLocales = List.unmodifiable(supportedLocales) {
if (this.supportedLocales.isEmpty) {
throw ArgumentError('At least one locale is required');
}
}