MultipleCompositeMessageLookup class
This is a message lookup mechanism that supports multiple translations per locale.
- Inheritance
-
- Object
- CompositeMessageLookup
- MultipleCompositeMessageLookup
Constructors
- MultipleCompositeMessageLookup.new(MessageLookup messageLookup)
-
A constructor that reuses the translation from
messageLookup
.
Properties
-
availableMessages
↔ Map<
String, MessageLookupByLibrary> -
A map from locale names to the corresponding lookups.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLocale(
String localeName, Function findLocale) → void -
findLocale
will be called and the result merged with the existing translations forlocaleName
.override -
localeExists(
String localeName) → bool -
Return true if we have a message lookup for
localeName
.inherited -
lookupMessage(
String? messageText, String? locale, String? name, List< Object> ? args, String? meaning, {MessageIfAbsent? ifAbsent}) → String? -
Look up the message with the given
name
andlocale
and return the translated version with the values inargs
interpolated. If nothing is found, return the result ofifAbsent
ormessageText
.inherited -
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