translateText property
String
get
translateText
Implementation
String get translateText {
if (hasTranslate) {
Map<String, String>? map = (body as TextMessageBody).translations;
if (map != null) {
return map[ChatUIKitSettings.translateTargetLanguage] ??
map[(body as TextMessageBody).targetLanguages?.first] ??
'';
}
}
return '';
}