duration property
int
get
duration
Implementation
int get duration {
if (bodyType == MessageType.VOICE) {
return (body as VoiceMessageBody).duration;
} else if (bodyType == MessageType.VIDEO) {
return (body as VideoMessageBody).duration ?? 0;
}
return 0;
}