caption property
String?
get
caption
The caption of the message, if any.
This extracts caption from photos, videos, documents, etc. The result is cached after the first access for better performance.
Implementation
String? get caption {
if (!_captionCached) {
_cachedCaption = msg?.caption;
_captionCached = true;
}
return _cachedCaption;
}