ZooperLocalizer<T> constructor

ZooperLocalizer<T>(
  1. List<LocalizationEntry> entries, {
  2. Locale? fallbackLocale,
  3. 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;
}