localPath property

String? get localPath

Implementation

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