SupportedLocale class
Represents a locale supported by the application, along with its associated translations.
This class encapsulates the details of a specific locale (language and region) and the translations that are available for that locale. It's used by the LocalizationManager to load and manage localized content.
Constructors
-
SupportedLocale({required Locale locale, required List<
Translation> translations}) - Constructs a SupportedLocale with a specific locale and list of translations.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → Locale
-
The locale represented by this instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
translations
→ List<
Translation> -
The list of translations available for this locale.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited