CompositeMessageLookup class
This is a message lookup mechanism that delegates to one of a collection of individual MessageLookupByLibrary instances.
Constructors
Properties
-
availableMessages
↔ Map<
String, MessageLookupByLibrary> -
A map from locale names to the corresponding lookups.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addLocale(
String localeName, Function findLocale) → void -
If we do not already have a locale for
localeName
thenfindLocale
will be called and the result stored as the lookup mechanism for that locale. -
localeExists(
dynamic localeName) → bool -
Return true if we have a message lookup for
localeName
. -
lookupMessage(
String message_str, String locale, String name, List 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
ormessage_str
. Thedesc
andexamples
parameters are ignored -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited