ExtendableMessageLookupByLibrary class
A class for messages lookup that can be extended with messages from another translation.
- Inheritance
-
- Object
- MessageLookupByLibrary
- ExtendableMessageLookupByLibrary
Constructors
- ExtendableMessageLookupByLibrary.new(MessageLookupByLibrary locale)
-
Create an instance with messages from
locale
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- localeName → String
-
Locale name , e.g. 'en_US'
final
-
messages
→ Map<
String, dynamic> -
Map a message to a list of the original locale and the original message
value. The locale is used to evaluate the value in evaluateMessage.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluateMessage(
dynamic translation, List args) → String? -
Evaluate the translated message and return the translated string.
override
-
extend(
MessageLookupByLibrary locale) → void -
Add messages from
locale
. -
lookupMessage(
String? messageText, String? locale, String? name, List< Object> ? args, String? meaning, {MessageIfAbsent? ifAbsent}) → String? -
Return the localized version of a message. We are passed the original
version of the message, which consists of a
messageText
that will be translated, and which may be interpolated based on one or more variables.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
-
operator [](
String messageName) → dynamic -
Return our message with the given name
inherited