CompositeMessageLookup class

This is a message lookup mechanism that delegates to one of a collection of individual MessageLookupByLibrary instances.

Constructors

CompositeMessageLookup()

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 then findLocale 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 and locale and return the translated version with the values in args interpolated. If nothing is found, return the result of ifAbsent or message_str. The desc and examples 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