BaseLocaleSettings<E, T extends BaseTranslations> class

Constructors

BaseLocaleSettings({required List<E> locales, required E baseLocale, required AppLocaleIdMapper mapper, required Map<E, T> translationMap, required BaseAppLocaleUtils utils})

Properties

baseLocale → E
The base locale
final
currentLocale → E
Gets current locale.
no setter
currentTranslations → T
Gets current translations
no setter
hashCode int
The hash code for this object.
no setterinherited
locales List<E>
Locale enums sorted alphabetically and base locale first
final
mapper AppLocaleIdMapper
Internal: Mapping between AppLocaleId and E
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLocalesRaw List<String>
Gets supported locales in string format.
no setter
translationMap Map<E, T>
Internal: Manages all translation instances May be modified when setting a custom plural resolver
final
utils BaseAppLocaleUtils
Internal: Reference to utils instance
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLocaleExceptProvider(E locale) → E
Sets locale, but do not change potential TranslationProvider's state Useful when you are in a pure Dart environment (without Flutter)
setPluralResolver({String? language, E? locale, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → void
Sets plural resolvers. See https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html See https://github.com/Tienisto/flutter-fast-i18n/blob/master/lib/src/model/pluralization_resolvers.dart Either specify language, or locale. Locale has precedence.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited