ActiveLocalizationDelegate constructor

ActiveLocalizationDelegate({
  1. required Iterable<Locale> supportedLocales,
  2. Locale? fallbackLocale,
  3. TranslationLoader? loader,
  4. AssetBundle? bundle,
  5. 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');
  }
}