addPreview method

void addPreview(
  1. ChatUIKitPreviewObj? previewObj
)

Implementation

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