CompositeMessageLookup class Null safety
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-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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? 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
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited