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