TranslatedMessage class abstract

This represents a message and its translation. We assume that the translation has some identifier that allows us to figure out the original message it corresponds to, and that it may want to transform the translated text in some way, e.g. to turn whatever format the translation uses for variables into a Dart string interpolation. Specific translation mechanisms are expected to subclass this.

Constructors

TranslatedMessage(String id, Message? translated)

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
The identifier for this message. In the simplest case, this is the name parameter from the Intl.message call, but it can be any identifier that this program and the output of the translation can agree on as identifying a message.
final
message Message?
no setter
originalMessage MainMessage
For backward compatibility, we still have the originalMessage API.
getter/setter pair
originalMessages List<MainMessage>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translated Message?
Our translated version of all the originalMessages.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object x) bool
The equality operator.
override