TranslationsStructureEnum enum
Defines how the translations map is structured in the configuration. This affects how translations are stored and accessed internally.
Values
- keyFirst → const TranslationsStructureEnum
-
The translation map is structured with keys as the first level and language codes as the second level.
Example:
{ 'welcome_message': { 'en': 'Welcome!', 'es': '¡Bienvenido!' }, 'goodbye_message': { 'en': 'Goodbye!', 'es': '¡Adiós!' } }
Best for:
- When you want to keep all translations for a key together
- Easier to spot missing translations for specific keys
- languageCodeFirst → const TranslationsStructureEnum
-
The translation map is structured with language codes as the first level and translation keys as the second level.
Example:
{ 'en': { 'welcome_message': 'Welcome!', 'goodbye_message': 'Goodbye!' }, 'es': { 'welcome_message': '¡Bienvenido!', 'goodbye_message': '¡Adiós!' } }
Best for:
- When you want to keep all translations for a language together
- Easier to manage language-specific files
- Better for lazy loading of languages
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
TranslationsStructureEnum> - A constant List of the values in this enum, in order of their declaration.