addPreview method
Implementation
void addPreview(ChatUIKitPreviewObj? previewObj) {
if (previewObj == null) return;
attributes ??= {};
attributes![msgPreviewKey] = previewObj.toJson();
}
void addPreview(ChatUIKitPreviewObj? previewObj) {
if (previewObj == null) return;
attributes ??= {};
attributes![msgPreviewKey] = previewObj.toJson();
}