removeAttachmentById method
Remove the attachment with the given attachmentId
.
Implementation
void removeAttachmentById(String attachmentId) {
attachments = [...attachments]..removeWhere((it) => it.id == attachmentId);
}
Remove the attachment with the given attachmentId
.
void removeAttachmentById(String attachmentId) {
attachments = [...attachments]..removeWhere((it) => it.id == attachmentId);
}