displayText property

String get displayText

Implementation

String get displayText {
  var content = '';
  try {
    final contentMap = messageObj["content"];

    if (contentMap is String) {
      content = contentMap;
    } else if (contentMap is Map) {
      content = contentMap['messageObj']['content'];
    }
  } catch (e) {
    content = '$e';
  }
  return content;
}