displayName property

String? get displayName

Implementation

String? get displayName {
  if (bodyType == MessageType.IMAGE) {
    return (body as ImageMessageBody).displayName;
  } else if (bodyType == MessageType.VOICE) {
    return (body as VoiceMessageBody).displayName;
  } else if (bodyType == MessageType.VIDEO) {
    return (body as VideoMessageBody).displayName;
  } else if (bodyType == MessageType.FILE) {
    return (body as FileMessageBody).displayName;
  }
  return null;
}