addAttachmentAt method
Adds a new attachment at the specified index
.
Implementation
void addAttachmentAt(int index, Attachment attachment) {
attachments = [...attachments]..insert(index, attachment);
}
Adds a new attachment at the specified index
.
void addAttachmentAt(int index, Attachment attachment) {
attachments = [...attachments]..insert(index, attachment);
}