setOGAttachment method

void setOGAttachment(
  1. Attachment attachment
)

Sets the og attachment in the message.

Implementation

void setOGAttachment(Attachment attachment) {
  attachments = [...attachments]
    ..remove(_ogAttachment)
    ..insert(0, attachment);
  _ogAttachment = attachment;
}