IntlDelegate constructor
IntlDelegate({
- required IntlDataLoader dataLoader,
- required String defaultLocale,
- IntlUpdateDataLoader? updateDataLoader,
- String defaultFlavor = defaultFlavorName,
- bool cacheLocale = true,
- void onError(
- dynamic err,
- 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));
}