ZooperLocalizer<T> constructor
ZooperLocalizer<T> (
- List<
LocalizationEntry> entries, { - Locale? fallbackLocale,
- Locale localeDelegate()?,
Implementation
ZooperLocalizer(
this.entries, {
Locale? fallbackLocale,
ui.Locale Function()? localeDelegate,
}) {
_fallbackLocale = fallbackLocale ?? const ui.Locale('en', 'US');
// If no function is provided, the locale is the device locale
_getLocale = localeDelegate ?? () => ui.window.locale;
}