MessageTranslationTextPart class

A source text segment used to protect mentions during translation.

Constructors

MessageTranslationTextPart({required String text, required bool isMention})
Creates a translation text segment.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isMention → bool
Whether this segment is a mention that must remain unchanged.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
Original text, including surrounding whitespace.
final
textToTranslate → String
Text sent to the translation service.
no setter

Methods

applyTranslation(String translatedText) → String
Replaces the translatable content while preserving its whitespace.
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