Messages class

Messages class extends Translations and is responsible for combining multiple translation maps into a single map. It provides a convenient way to manage translations in Flutter applications using the GetX package. Example Usage:

void main() {
  // Example translation maps
  List<Map<String, Map<String, String>>> translationMaps = [
    {'en_US': {'hello': 'Hello', 'world': 'World'}},
    {'es_ES': {'hello': 'Hola', 'world': 'Mundo'}},
  ];

  // Using Messages class in GetMaterialApp
  runApp(
    GetMaterialApp(
      translations: Messages(translationMaps),
      // Other GetMaterialApp configurations...
    ),
  );
}
Inheritance
  • Object
  • Translations
  • Messages

Constructors

Messages(List<Map<String, Map<String, String>>> translations)
Constructor for the Messages class.

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Map<String, Map<String, String>>
Overrides the keys getter from Translations to provide the combined translation keys.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translations List<Map<String, Map<String, String>>>
List of translation maps to be combined into a single map.
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