removeAttachmentAt method

void removeAttachmentAt(
  1. int index
)

Removes the attachment at the given index.

Implementation

void removeAttachmentAt(int index) {
  attachments = [...attachments]..removeAt(index);
}