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.
getter/setter pair
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
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(String localeName) bool
Return true if we have a message lookup for localeName.
lookupMessage(String? messageText, String? locale, String? name, List<Object>? 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 messageText.
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