IntlDelegate constructor

IntlDelegate({
  1. required IntlDataLoader dataLoader,
  2. required String defaultLocale,
  3. IntlUpdateDataLoader? updateDataLoader,
  4. String defaultFlavor = defaultFlavorName,
  5. bool cacheLocale = true,
  6. void onError(
    1. dynamic err,
    2. dynamic stack
    )?,
})

Construct an object that deal with locales and flavors in order to give you the correct translations depending on the loaded locales, the current locale and flavor.

Implementation

IntlDelegate({
  required this.dataLoader,
  required this.defaultLocale,
  this.updateDataLoader,
  this.defaultFlavor = defaultFlavorName,
  bool cacheLocale = true,
  this.onError,
  //this.supportedFlavors = const [],
}) {
  initializeInternalMessageLookup(
      () => CustomCompositeMessageLookup(cacheLocale: cacheLocale));
}