ZooperLocalizer<T> class

Model that holds all the localized entries

Constructors

ZooperLocalizer(List<LocalizationEntry> entries, {Locale? fallbackLocale, Locale localeDelegate()?})

Properties

entries List<LocalizationEntry>
The entries of the loaded file
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocalization(String key) String
Gets the localized value by the default locale
getLocalizationByLocale(String key, Locale locale) String
Gets the localized value by a specific locale
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryGetLocalizationEntry(String key) LocalizationEntry?
Gets the whole LocalizationEntry

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) String
Gets the localized value by the default locale