TranslationRequestMessage class

Mirrors TranslationSession.Request.

Constructors

TranslationRequestMessage({required String sourceText, List<TextSegmentMessage>? segments, String? clientIdentifier})

Properties

clientIdentifier ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments ↔ List<TextSegmentMessage>?
Attributed text (iOS 26.4 / macOS 26.4).
getter/setter pair
sourceText ↔ String
Plain text. Ignored when segments is set.
getter/setter pair

Methods

encode() → Object
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 other) → bool
The equality operator.
override

Static Methods

decode(Object result) → TranslationRequestMessage