removeAttachment method

void removeAttachment(
  1. Attachment attachment
)

Removes the specified attachment from the message.

Implementation

void removeAttachment(Attachment attachment) {
  attachments = [...attachments]..remove(attachment);
}